mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -89,8 +89,9 @@ Pretty symbols can be unset for emacs-lisp-mode with:
|
|||||||
(set-pretty-symbols! 'emacs-lisp-mode nil)"
|
(set-pretty-symbols! 'emacs-lisp-mode nil)"
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(if (null (car-safe plist))
|
(if (null (car-safe plist))
|
||||||
(delq (assq mode +pretty-code-symbols-alist)
|
(dolist (mode (doom-enlist modes))
|
||||||
+pretty-code-symbols-alist)
|
(delq (assq mode +pretty-code-symbols-alist)
|
||||||
|
+pretty-code-symbols-alist))
|
||||||
(let (results merge key)
|
(let (results merge key)
|
||||||
(while plist
|
(while plist
|
||||||
(pcase (setq key (pop plist))
|
(pcase (setq key (pop plist))
|
||||||
|
Reference in New Issue
Block a user