From 5d27540a3e611229f3c37452bbb6ab104688867c Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 9 Sep 2024 15:34:34 +0200 Subject: emacs: Only get ‘ligature’ if Harfbuzz support is available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/init.el | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3