mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Merge pull request #1299 from jochu/patch-1
Escape key regexps when building which-key leader prefix
This commit is contained in:
@ -124,8 +124,8 @@ If any hook returns non-nil, all hooks after it are ignored.")
|
||||
(concat "\\(?:"
|
||||
(cl-loop for key in (append (list doom-leader-key doom-leader-alt-key)
|
||||
(where-is-internal 'doom/leader))
|
||||
if (stringp key) collect key into keys
|
||||
else collect (key-description key) into keys
|
||||
if (stringp key) collect (regexp-quote key) into keys
|
||||
else collect (regexp-quote (key-description key)) into keys
|
||||
finally return (string-join keys "\\|"))
|
||||
"\\)"))))
|
||||
(add-hook 'doom-after-init-modules-hook #'doom|init-leader-keys)
|
||||
|
Reference in New Issue
Block a user