Browse Source

Add imenu-generic-expression

master
10sr 6 years ago
parent
commit
8abf08e0cc
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      emacs.el

+ 6
- 0
emacs.el View File

@@ -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)


Loading…
Cancel
Save