mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix M-SPC error with helm #1059
The global leader keybind was conflicting with a global M-SPC keybind in helm-map. This keybind should only be set in non-evil sessions, so we unset it if evil is found.
This commit is contained in:
@ -58,8 +58,10 @@ If any hook returns non-nil, all hooks after it are ignored.")
|
||||
(define-key doom-leader-map [override-state] 'all)
|
||||
|
||||
(global-set-key (kbd doom-leader-alt-key) 'doom-leader)
|
||||
(general-define-key :states '(emacs insert) doom-leader-alt-key 'doom-leader)
|
||||
(general-define-key :states '(normal visual motion replace) doom-leader-key 'doom-leader)
|
||||
(after! evil
|
||||
(global-set-key (kbd doom-leader-alt-key) nil)
|
||||
(general-define-key :states '(emacs insert) doom-leader-alt-key 'doom-leader)
|
||||
(general-define-key :states '(normal visual motion replace) doom-leader-key 'doom-leader))
|
||||
|
||||
;; We avoid `general-create-definer' to ensure that :states, :wk-full-keys and
|
||||
;; :keymaps cannot be overwritten.
|
||||
|
Reference in New Issue
Block a user