Here’s my config
(use-package general
:demand t
:config
(general-create-definer my/leader-keys
:keymaps '(normal insert visual emacs)
:prefix "SPC"
:global-prefix "C-SPC")
(my/leader-keys
;; Eval
"ee" 'eval-last-sexp
"eb" 'eval-buffer)
(my/leader-keys 'normal org-mode-map
"''" 'org-edit-special)
(my/leader-keys 'normal org-src-mode-map
"''" 'org-edit-src-exit
"'k" 'org-edit-src-abort))
Keybinding defined for org-edit-special
works fine in org mode. But, when I’m in org src buffer I can’t use keybinding for org-edit-src-exit
until I go to insert mode an come back. I’ve also discovered that calling describe key on C-c '
, which is default keybinding for that, also works. I’m very confused about this. Can it be a bug or I’m doing something wrong?
Thanks in advance for your help.
You must log in or register to comment.
I think this is a known issue: https://github.com/noctuid/evil-guide#why-dont-keys-defined-with-evil-define-key-work-immediately