From cc8ad19691ada017a9dc673935b2f9f07d658b45 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 27 Apr 2020 14:21:20 +0900 Subject: [PATCH] Use imenu-list-smart-toggle --- emacs.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index fe6a710..5bf04b8 100644 --- a/emacs.el +++ b/emacs.el @@ -1488,7 +1488,9 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called." (imenu-list-minor-mode 1))) ;; (set-variable 'imenu-list-auto-resize t) (set-variable 'imenu-list-focus-after-activation t) - (define-key ctl-x-map (kbd "C-l") 'my-imenu-list-toggle)) + ;; (define-key ctl-x-map (kbd "C-l") 'my-imenu-list-toggle) + (define-key ctl-x-map (kbd "C-l") 'imenu-list-smart-toggle) + ) (add-hook 'emacs-lisp-mode-hook (lambda ()