diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-09-22 15:33:34 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-09-22 15:33:34 +0200 |
commit | fb4071adc5421d2084ea81db696642fb97f221d5 (patch) | |
tree | 4e2c34cfb6ae5da49d1b8f7b8abb3cb59df4d05d /.config/emacs | |
parent | de5ce58331aa1f0ceab03e7dab42f82bdf709e4d (diff) |
emacs: Use ligatures in mhtml-mode
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/init.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 3794825..931ce9a 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -606,15 +606,16 @@ font name, font weight, and font height in that order.") ;; Setup ligatures (use-package ligature + :defer nil :if (and (seq-contains-p (split-string system-configuration-features) "HARFBUZZ") (display-graphic-p)) :init (defvar x-ligatures-alist - '(((c-mode c-ts-mode go-ts-mode) . ("<=" ">=" "==" "!=" "*=" "__")) - (c-mode c-ts-mode . ("->")) - (go-ts-mode . (":=" "<-")) - ((html-mode html-ts-mode) . ("<!--" "-->" "/>"))) + '(((c-mode c-ts-mode go-ts-mode) . ("<=" ">=" "==" "!=" "*=" "__")) + (c-mode c-ts-mode . ("->")) + (go-ts-mode . (":=" "<-")) + ((mhtml-mode html-mode html-ts-mode) . ("<!--" "-->" "/>"))) "Ligatures to enable in specific modes. Elements of this alist are of the form: |