From 874b536892fad38e8ae02679c75222ceb1ddc520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Thu, 21 Sep 2023 11:55:07 +0100 Subject: [PATCH] fix(ligatures): set-font-ligatures! reset on nil --- modules/ui/ligatures/autoload/ligatures.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/ligatures/autoload/ligatures.el b/modules/ui/ligatures/autoload/ligatures.el index b44cc9599..6c8194681 100644 --- a/modules/ui/ligatures/autoload/ligatures.el +++ b/modules/ui/ligatures/autoload/ligatures.el @@ -70,7 +70,7 @@ Note that this will keep all ligatures in `+ligatures-prog-mode-list' active, as ;; NOTE: Doom enforces `ligature-composition-table' to have a single mode per key in the alist. ;; This is less efficient than what ligature.el can do (i.e. use a list of modes, or `t' as a key), ;; but holding this invariant allows resetting with `(set-font-ligatures! 'mode nil)` to work reliably. - (if (null ligatures) + (if (or (null ligatures) (equal ligatures '(nil))) (dolist (mode (ensure-list modes)) (delq! mode ligature-composition-table 'assq)) (after! ligature