summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-10 18:51:57 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-10 18:51:57 +0200
commit5ba6b7221c3f7c67d773acd56f70e4f01eba2fcf (patch)
treec3a77ec57a31f06d487cec707c1c16e62d9b8322 /.config/emacs/init.el
parentecfe5f26c42705e3539316415740958456c1195b (diff)
emacs: Don’t try to use ligatures in the terminal
Diffstat (limited to '.config/emacs/init.el')
-rw-r--r--.config/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 3d9b807..ff0c679 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -582,7 +582,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")
+ (and (seq-contains-p (split-string system-configuration-features) "HARFBUZZ")
+ (display-graphic-p))
:init
(defvar x-ligatures-alist
'(((c-mode go-ts-mode) . ("->" "<=" ">=" "==" "!=" "*=" "__"))