From f6421731e5952ecdedb05642ca02a1c54a01ee80 Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Wed, 22 Jan 2025 17:55:39 +0100 Subject: [PATCH] Disable ligatures --- init.el | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/init.el b/init.el index c245b294..d7b5baa9 100755 --- a/init.el +++ b/init.el @@ -1939,30 +1939,30 @@ Uses `mk/hyperspec-dir-locations' to find the directory." ;; This assumes you've installed the package via MELPA. -(use-package ligature - :config - ;; Enable the "www" ligature in every possible major mode - (ligature-set-ligatures 't '("www")) - ;; Enable traditional ligature support in eww-mode, if the - ;; `variable-pitch' face supports it - (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) - ;; Enable all Cascadia Code ligatures in programming modes - (ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "" "---" "-<<" - "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" - "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "" "###" "#_(" "..<" - "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" - "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" - "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" - ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" - "<$" "<=" "<>" "<-" "<<" "<+" "" "++" "?:" - "?=" "?." "??" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" - "\\\\" "://")) - ;; Enables ligature checks globally in all buffers. You can also do it - ;; per mode with `ligature-mode'. - (global-ligature-mode t)) +;; (use-package ligature +;; :config +;; ;; Enable the "www" ligature in every possible major mode +;; (ligature-set-ligatures 't '("www")) +;; ;; Enable traditional ligature support in eww-mode, if the +;; ;; `variable-pitch' face supports it +;; (ligature-set-ligatures 'eww-mode '("ff" "fi" "ffi")) +;; ;; Enable all Cascadia Code ligatures in programming modes +;; (ligature-set-ligatures 'prog-mode '("|||>" "<|||" "<==>" "" "---" "-<<" +;; "<~~" "<~>" "<*>" "<||" "<|>" "<$>" "<==" "<=>" "<=<" "<->" +;; "<--" "<-<" "<<=" "<<-" "<<<" "<+>" "" "###" "#_(" "..<" +;; "..." "+++" "/==" "///" "_|_" "www" "&&" "^=" "~~" "~@" "~=" +;; "~>" "~-" "**" "*>" "*/" "||" "|}" "|]" "|=" "|>" "|-" "{|" +;; "[|" "]#" "::" ":=" ":>" ":<" "$>" "==" "=>" "!=" "!!" ">:" +;; ">=" ">>" ">-" "-~" "-|" "->" "--" "-<" "<~" "<*" "<|" "<:" +;; "<$" "<=" "<>" "<-" "<<" "<+" "" "++" "?:" +;; "?=" "?." "??" "/*" "/=" "/>" "//" "__" "~~" "(*" "*)" +;; "\\\\" "://")) +;; ;; Enables ligature checks globally in all buffers. You can also do it +;; ;; per mode with `ligature-mode'. +;; (global-ligature-mode t)) (let ((bundle-dir (expand-file-name "~/.emacs.d/bundle/"))) (when (file-directory-p bundle-dir)