From 5f3bfa1db1ea06b4c8e6bac79352d7df945f014f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 10 Jun 2020 02:26:26 -0400 Subject: [PATCH] Fix #3343: don't re-set char-table on doom/reload --- modules/ui/pretty-code/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/pretty-code/config.el b/modules/ui/pretty-code/config.el index f38eea349..dd8886e57 100644 --- a/modules/ui/pretty-code/config.el +++ b/modules/ui/pretty-code/config.el @@ -183,7 +183,8 @@ Otherwise it sets the buffer-local composition table to a composition table enha (dolist (char-regexp +prog-ligatures-alist) (set-char-table-range composition-ligature-table (car char-regexp) `([,(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))