diff options
author | David Li <li.davidm96@gmail.com> | 2017-05-20 10:03:19 -0400 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2017-05-20 10:03:19 -0400 |
commit | 2ef523a532409c4191425d0a567779e692487e69 (patch) | |
tree | c08dc91a9b3acfa453921238010b367e206dfc38 | |
parent | ae10ee167537cfc50f9e386446f2f5813e6dfe11 (diff) |
Bind imenu-anywhere via evil
-rw-r--r-- | init.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,8 +58,6 @@ (require 'smex) (global-set-key (kbd "M-x") 'smex) -(global-set-key (kbd "C-.") 'imenu-anywhere) - ;; electric-pair (electric-pair-mode 1) @@ -116,9 +114,11 @@ This functions should be added to the hooks of major modes for programming." (comment-or-uncomment-region beg end))) (define-key evil-normal-state-map (kbd ";") 'comment-or-uncomment-region-or-line) +(define-key evil-normal-state-map (kbd "C-.") 'ido-imenu-anywhere) (define-key evil-visual-state-map (kbd ";") 'comment-or-uncomment-region-or-line) (define-key evil-insert-state-map (kbd "C-d") 'evil-delete-char) (define-key evil-insert-state-map (kbd "M-d") 'kill-word) +(define-key evil-insert-state-map (kbd "C-.") 'ido-imenu-anywhere) (require 'evil-surround) (global-evil-surround-mode 1) |