summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/mm-theme.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-19 17:07:45 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-19 17:07:45 +0200
commit9b1f39f416194b520f267957e2b5974df2fdf8eb (patch)
tree6227b2d5096dd34be3fd59e43a395ac7e87d0b2f /.config/emacs/modules/mm-theme.el
parent47b8990385011594698fb765f199a565005f3a00 (diff)
emacs: Simplify ligature-mode hook
Diffstat (limited to '.config/emacs/modules/mm-theme.el')
-rw-r--r--.config/emacs/modules/mm-theme.el12
1 files changed, 1 insertions, 11 deletions
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))