Fix "section" imenu regexp
This commit is contained in:
parent
b7d1702484
commit
8aff431ed9
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ if it's callable, `apropos' otherwise."
|
||||||
(defun +emacs-lisp|extend-imenu ()
|
(defun +emacs-lisp|extend-imenu ()
|
||||||
"Improve imenu support in `emacs-lisp-mode', including recognition for Doom's API."
|
"Improve imenu support in `emacs-lisp-mode', including recognition for Doom's API."
|
||||||
(setq imenu-generic-expression
|
(setq imenu-generic-expression
|
||||||
`(("Section" "^[ \t]*;;;;* \\(\\_<[^ ()\n]+\\_>\\)" 1)
|
`(("Section" "^[ \t]*;;;;* \\(\\_<[^\n]+\\_>\\)" 1)
|
||||||
("Evil commands" "^\\s-*(evil-define-\\(?:command\\|operator\\|motion\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)
|
("Evil commands" "^\\s-*(evil-define-\\(?:command\\|operator\\|motion\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)
|
||||||
("Unit tests" "^\\s-*(\\(?:ert-deftest\\|describe\\) +\"\\([^\")]+\\)\"" 1)
|
("Unit tests" "^\\s-*(\\(?:ert-deftest\\|describe\\) +\"\\([^\")]+\\)\"" 1)
|
||||||
("Package" "^\\s-*(\\(?:;;;###package\\|def-package!\\|package!\\|use-package\\|after!\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)
|
("Package" "^\\s-*(\\(?:;;;###package\\|def-package!\\|package!\\|use-package\\|after!\\) +\\(\\_<[^ ()\n]+\\_>\\)" 1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue