From 8862f8694c1a67a159d04efb0668a06fcf610ae6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 13 Jul 2021 14:33:57 -0400 Subject: [PATCH] Activate general-auto-unbind-keys post-startup To prevent "X starts with non-prefix key Y" errors except at startup. --- core/core-keybinds.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-keybinds.el b/core/core-keybinds.el index cc0d6cdb6..f7f326cb4 100644 --- a/core/core-keybinds.el +++ b/core/core-keybinds.el @@ -110,7 +110,10 @@ all hooks after it are ignored.") :init ;; Convenience aliases (defalias 'define-key! #'general-def) - (defalias 'undefine-key! #'general-unbind)) + (defalias 'undefine-key! #'general-unbind) + :config + ;; Prevent "X starts with non-prefix key Y" errors except at startup. + (add-hook 'doom-after-init-modules-hook #'general-auto-unbind-keys)) ;; HACK `map!' uses this instead of `define-leader-key!' because it consumes