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:
parent
94b4cd3ddb
commit
c0c84eb99b
1 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue