mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
tweak(ligatures): +ligatures-extra-alist: affect derived modes
Close: #7808 Co-authored-by: Dev380 <Dev380@users.noreply.github.com>
This commit is contained in:
@@ -138,7 +138,10 @@ and cannot run in."
|
|||||||
(setq +ligatures--init-font-hook nil)))
|
(setq +ligatures--init-font-hook nil)))
|
||||||
(when in-mode-extras-p
|
(when in-mode-extras-p
|
||||||
(prependq! prettify-symbols-alist
|
(prependq! prettify-symbols-alist
|
||||||
(alist-get major-mode +ligatures-extra-alist)))
|
(or (alist-get major-mode +ligatures-extra-alist)
|
||||||
|
(cl-loop for (mode . symbols) in +ligatures-extra-alist
|
||||||
|
if (derived-mode-p mode)
|
||||||
|
return symbols))))
|
||||||
(when (and (or in-mode-p in-mode-extras-p)
|
(when (and (or in-mode-p in-mode-extras-p)
|
||||||
prettify-symbols-alist)
|
prettify-symbols-alist)
|
||||||
(when prettify-symbols-mode
|
(when prettify-symbols-mode
|
||||||
|
Reference in New Issue
Block a user