From 8abf08e0cc497848eac5d3d7c21e5ce45f9f969a Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 9 Oct 2018 14:15:32 +0900 Subject: [PATCH] Add imenu-generic-expression --- emacs.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.el b/emacs.el index afab0ce..ebb0b41 100644 --- a/emacs.el +++ b/emacs.el @@ -848,6 +848,12 @@ found, otherwise returns nil." (set-variable 'imenu-list-focus-after-activation t) (define-key ctl-x-map "l" 'imenu-list-smart-toggle)) +(add-hook 'emacs-lisp-mode-hook + (lambda () + (setq imenu-generic-expression + `(("Sections" ";;;\+\n;; \\(.*\\)\n" 1) + ,@imenu-generic-expression)))) + (with-eval-after-load 'compile (defvar compilation-filter-start) (defvar compilation-error-regexp-alist)