Emacs: add use-package declarations to Imenu when in elisp
Alan Pearce alan@alanpearce.co.uk
Mon, 27 May 2013 14:32:08 +0100
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -880,7 +880,8 @@ (slime-setup))) (defun imenu-elisp-sections () (setq imenu-prev-index-position-function nil) - (add-to-list 'imenu-generic-expression '("Sections" "^;;;; \\(.+\\)$" 1) t)) + (add-to-list 'imenu-generic-expression '("Sections" "^;;;; \\(.+\\)$" 1) t) + (add-to-list 'imenu-generic-expression '("Packages" "^(use-package\\s-+\\(\\(\\sw\\|\\s_\\)+\\)$" 1) t)) (defun init-narrow-to-section () (interactive)