Disable ligatures

This commit is contained in:
Marcus Kammer 2025-01-22 17:55:39 +01:00
parent 3672373a79
commit f6421731e5

48
init.el
View file

@ -1939,30 +1939,30 @@ Uses `mk/hyperspec-dir-locations' to find the directory."
;; This assumes you've installed the package via MELPA. ;; This assumes you've installed the package via MELPA.
(use-package ligature ;; (use-package ligature
:config ;; :config
;; Enable the "www" ligature in every possible major mode ;; ;; Enable the "www" ligature in every possible major mode
(ligature-set-ligatures 't '("www")) ;; (ligature-set-ligatures 't '("www"))
;; Enable traditional ligature support in eww-mode, if the ;; ;; Enable traditional ligature support in eww-mode, if the
;; `variable-pitch' face supports it ;; ;; `variable-pitch' face supports it
(ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) ;; (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi"))
;; Enable all Cascadia Code ligatures in programming modes ;; ;; Enable all Cascadia Code ligatures in programming modes
(ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>" ;; (ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "<!--" "####" "~~>" "***" "||=" "||>"
":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!==" ;; ":::" "::=" "=:=" "===" "==>" "=!=" "=>>" "=<<" "=/=" "!=="
"!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<" ;; "!!." ">=>" ">>=" ">>>" ">>-" ">->" "->>" "-->" "---" "-<<"
"<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" ;; "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->"
"<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<" ;; "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "</>" "###" "#_(" "..<"
"..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" ;; "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~="
"~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" ;; "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|"
"[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" ;; "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:"
">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" ;; ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:"
"<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!" ;; "<$" "<=" "<>" "<-" "<<" "<+" "</" "#{" "#[" "#:" "#=" "#!"
"##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:" ;; "##" "#(" "#?" "#_" "%%" ".=" ".-" ".." ".?" "+>" "++" "?:"
"?=" "?." "??" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" ;; "?=" "?." "??" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)"
"\\\\" "://")) ;; "\\\\" "://"))
;; Enables ligature checks globally in all buffers. You can also do it ;; ;; Enables ligature checks globally in all buffers. You can also do it
;; per mode with `ligature-mode'. ;; ;; per mode with `ligature-mode'.
(global-ligature-mode t)) ;; (global-ligature-mode t))
(let ((bundle-dir (expand-file-name "~/.emacs.d/bundle/"))) (let ((bundle-dir (expand-file-name "~/.emacs.d/bundle/")))
(when (file-directory-p bundle-dir) (when (file-directory-p bundle-dir)