tweak(ligatures): +ligatures-extra-alist: affect derived modes
Close: #7808 Co-authored-by: Dev380 <Dev380@users.noreply.github.com>
This commit is contained in:
parent
a0c901cca7
commit
d941078e66
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue