set-pretty-symbols!: fix void-variable mode error
Occurs when unsetting pretty symbols for a mode with (set-pretty-symbols! 'some-mode nil), because of a forgotten loop and let-var.
This commit is contained in:
parent
d6cb0ec5f5
commit
5331a28533
1 changed files with 3 additions and 2 deletions
|
@ -89,8 +89,9 @@ Pretty symbols can be unset for emacs-lisp-mode with:
|
|||
(set-pretty-symbols! 'emacs-lisp-mode nil)"
|
||||
(declare (indent defun))
|
||||
(if (null (car-safe plist))
|
||||
(delq (assq mode +pretty-code-symbols-alist)
|
||||
+pretty-code-symbols-alist)
|
||||
(dolist (mode (doom-enlist modes))
|
||||
(delq (assq mode +pretty-code-symbols-alist)
|
||||
+pretty-code-symbols-alist))
|
||||
(let (results merge key)
|
||||
(while plist
|
||||
(pcase (setq key (pop plist))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue