From 2ef523a532409c4191425d0a567779e692487e69 Mon Sep 17 00:00:00 2001
From: David Li
Date: Sat, 20 May 2017 10:03:19 -0400
Subject: Bind imenu-anywhere via evil
---
init.el | 4 ++--
1 file 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)
--
cgit v1.2.3