summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-09 15:34:34 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-09 15:34:34 +0200
commit5d27540a3e611229f3c37452bbb6ab104688867c (patch)
tree6a5d495a7e5d9b6c802349cdfdccb4490c202b94 /.config
parentc6c9f113eaef1ba9636dd5342c1cd00c956d61ec (diff)
emacs: Only get ‘ligature’ if Harfbuzz support is available
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 6b29256..55b46dd 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -650,6 +650,8 @@ font name, font weight, and font height in that order.")
;; Setup ligatures
(use-package ligature
+ :if
+ (seq-contains-p (split-string system-configuration-features) "HARFBUZZ")
:config
(ligature-set-ligatures
'c-mode