Fix "section" imenu regexp

This commit is contained in:
Henrik Lissner 2019-05-13 22:32:33 -04:00
parent b7d1702484
commit 8aff431ed9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -106,7 +106,7 @@ if it's callable, `apropos' otherwise."
(defun +emacs-lisp|extend-imenu ()
"Improve imenu support in `emacs-lisp-mode', including recognition for Doom's API."
(setq imenu-generic-expression
`(("Section" "^[ \t]*;;;;* \\(\\_<[^ ()\n]+\\_>\\)" 1)
`(("Section" "^[ \t]*;;;;* \\(\\_<[^\n]+\\_>\\)" 1)
("Evil commands" "^\\s-*(evil-define-\\(?:command\\|operator\\|motion\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)
("Unit tests" "^\\s-*(\\(?:ert-deftest\\|describe\\) +\"\\([^\")]+\\)\"" 1)
("Package" "^\\s-*(\\(?:;;;###package\\|def-package!\\|package!\\|use-package\\|after!\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)