Really fix smart gd and K :-)

This commit is contained in:
syl20bnr 2015-05-05 23:20:12 -04:00
parent 59ff87b10d
commit 1d1772b854

View file

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