From fb4071adc5421d2084ea81db696642fb97f221d5 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 22 Sep 2024 15:33:34 +0200 Subject: emacs: Use ligatures in mhtml-mode --- .config/emacs/init.el | 9 +++++---- 1 file 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: -- cgit v1.2.3