Fix #3343: don't re-set char-table on doom/reload

This commit is contained in:
Henrik Lissner 2020-06-10 02:26:26 -04:00
parent dd8b535eb1
commit 5f3bfa1db1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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))