From 5ba6b7221c3f7c67d773acd56f70e4f01eba2fcf Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 10 Sep 2024 18:51:57 +0200 Subject: emacs: Don’t try to use ligatures in the terminal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config/emacs/init.el') 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) . ("->" "<=" ">=" "==" "!=" "*=" "__")) -- cgit v1.2.3