summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-05-27 22:00:13 -0400
committerKyle Meyer <kyle@kyleam.com>2015-05-27 22:00:13 -0400
commit52cb87c2daf5ee006127e7c8b25c2c08f94d47e9 (patch)
tree89d692774a9eba14e5857fbfb084767e6b296227 /lisp
parent713e7f1e67dd02e8329e8e294815183175ebbcb4 (diff)
downloademacs.d-52cb87c2daf5ee006127e7c8b25c2c08f94d47e9.tar.gz
Remove km/imenu
This is no longer need since I am using helm-imenu in place of imenu because helm-imenu binds imenu-auto-rescan to t.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-general.el13
1 files changed, 1 insertions, 12 deletions
diff --git a/lisp/init-general.el b/lisp/init-general.el
index c65cfd7..8337c63 100644
--- a/lisp/init-general.el
+++ b/lisp/init-general.el
@@ -31,17 +31,6 @@
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
-(defun km/imenu (rescan)
- "Call `imenu', rescanning if RESCAN is non-nil."
- (interactive "P")
- (when (and rescan
- ;; No need to rescan if imenu hasn't been autoloaded yet.
- (fboundp 'imenu--cleanup))
- ;; Taken from `imenu-choose-buffer-index'.
- (imenu--cleanup)
- (setq imenu--index-alist nil))
- (call-interactively #'helm-imenu))
-
;; Taken from
;; http://milkbox.net/note/single-file-master-emacs-configuration/.
(defmacro after (mode &rest body)
@@ -54,7 +43,7 @@
(global-set-key (kbd "C-h 4 ;") 'find-function-other-window)
-(global-set-key (kbd "C-c l") 'km/imenu)
+(global-set-key (kbd "C-c l") 'helm-imenu)
;; Disable `suspend-frame' binding.
(global-set-key (kbd "C-x C-z") nil)