Fix gd and K in normal state that insert strings in the buffer

This commit is contained in:
syl20bnr 2015-05-05 23:08:06 -04:00
parent 640d8fc19c
commit 59ff87b10d

View file

@ -684,7 +684,8 @@ Example: (evil-map visual \"<\" \"<gv\")"
while falling back to `evil-lookup'"
(interactive)
(condition-case nil
(execute-kbd-macro (kbd (concat dotspacemacs-leader-key " m h h")))
(execute-kbd-macro (listify-key-sequence
(concat dotspacemacs-leader-key "mhh")))
(error (evil-lookup))))
(define-key evil-normal-state-map (kbd "K") 'spacemacs/evil-smart-doc-lookup)
@ -695,7 +696,8 @@ Example: (evil-map visual \"<\" \"<gv\")"
while falling back to `evil-goto-definition'"
(interactive)
(condition-case nil
(execute-kbd-macro (kbd (concat dotspacemacs-leader-key "m g g")))
(execute-kbd-macro (listify-key-sequence
(concat dotspacemacs-leader-key "mgg")))
(error (evil-goto-definition))))
(define-key evil-normal-state-map
(kbd "gd") 'spacemacs/evil-smart-goto-definition)