mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #3343: don't re-set char-table on doom/reload
This commit is contained in:
@ -183,7 +183,8 @@ Otherwise it sets the buffer-local composition table to a composition table enha
|
|||||||
(dolist (char-regexp +prog-ligatures-alist)
|
(dolist (char-regexp +prog-ligatures-alist)
|
||||||
(set-char-table-range composition-ligature-table (car char-regexp)
|
(set-char-table-range composition-ligature-table (car char-regexp)
|
||||||
`([,(cdr char-regexp) 0 font-shape-gstring])))
|
`([,(cdr char-regexp) 0 font-shape-gstring])))
|
||||||
(set-char-table-parent composition-ligature-table composition-function-table)
|
(unless doom-reloading-p
|
||||||
|
(set-char-table-parent composition-ligature-table composition-function-table))
|
||||||
|
|
||||||
(add-hook 'after-change-major-mode-hook #'+pretty-code-init-ligatures-h))
|
(add-hook 'after-change-major-mode-hook #'+pretty-code-init-ligatures-h))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user