summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Li <li.davidm96@gmail.com>2017-05-20 10:03:19 -0400
committerDavid Li <li.davidm96@gmail.com>2017-05-20 10:03:19 -0400
commit2ef523a532409c4191425d0a567779e692487e69 (patch)
treec08dc91a9b3acfa453921238010b367e206dfc38
parentae10ee167537cfc50f9e386446f2f5813e6dfe11 (diff)
Bind imenu-anywhere via evil
-rw-r--r--init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.el b/init.el
index 4fbe013..ad34204 100644
--- a/init.el
+++ b/init.el
@@ -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)