From 9b1f39f416194b520f267957e2b5974df2fdf8eb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 19 Oct 2024 17:07:45 +0200 Subject: emacs: Simplify ligature-mode hook --- .config/emacs/modules/mm-theme.el | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to '.config/emacs') diff --git a/.config/emacs/modules/mm-theme.el b/.config/emacs/modules/mm-theme.el index c49c13f..6c5a4c7 100644 --- a/.config/emacs/modules/mm-theme.el +++ b/.config/emacs/modules/mm-theme.el @@ -109,17 +109,7 @@ Also see `mm-theme-ligatures-alist'." (seq-contains-p (split-string system-configuration-features) "HARFBUZZ")) (display-graphic-p)) - :commands ligature-mode - :init - ;; Add ‘ligature-mode’ as a hook for all modes configured in - ;; ‘mm-theme-ligatures-alist’ - (thread-last - mm-theme-ligatures-alist - (mapcar #'car) - (flatten-tree) - (seq-uniq) - (mapcar #'mm-mode-to-hook) - (mapc (lambda (mode) (add-hook mode #'ligature-mode)))) + :hook prog-mode :config (mm-theme-update-ligatures)) -- cgit v1.2.3