Update imenu flattening commentary

This commit is contained in:
Ivan Malison 2016-08-17 17:58:24 -07:00
parent 001af75c85
commit 96d653d3de
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -522,8 +522,6 @@ index.
(imalison:flatten-index-entry entry new-prefix)) (imalison:flatten-index-entry entry new-prefix))
rest))) rest)))
(if entry-marker (if entry-marker
;; When the entry had properties, we may want to keep
;; it around, because it might have a marker attached.
(cons (cons new-entry-name entry-marker) flattened-subentries) (cons (cons new-entry-name entry-marker) flattened-subentries)
flattened-subentries)) flattened-subentries))
;; Leaf Node ;; Leaf Node
@ -547,7 +545,7 @@ index.
By advising ~imenu--make-index-alist~ with By advising ~imenu--make-index-alist~ with
~imalison:flatten-imenu-index~ we make it so that imenu indexes are ~imalison:flatten-imenu-index~ we make it so that imenu indexes are
always flattened. This is still experimental, so copy to your own always flattened. This is still experimental, so copy to your own
dotfiles with caution. emacs-configuration with caution.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defvar imalison:flatten-imenu-global nil) (defvar imalison:flatten-imenu-global nil)
(defvar imalison:flatten-imenu-local t) (defvar imalison:flatten-imenu-local t)