How can we rename Emacs "Imenu" into "Outline"?
The goal is NOT to break anything else, things which depend on Imenu, such as helm-imenu or helm-semantic-or-imenu.
How can we rename Emacs "Imenu" into "Outline"?
The goal is NOT to break anything else, things which depend on Imenu, such as helm-imenu or helm-semantic-or-imenu.
This is the code I found in my .emacs -- It is now adapted to name the menu "Outline" (instead of "Index" or "Imenu"):
;; Add Imenu to the menu bar in any mode that supports it.
(defun try-to-add-imenu ()
(condition-case nil
(imenu-add-to-menubar "Outline") ;; Imenu index
(error nil)))
(add-hook 'font-lock-mode-hook #'try-to-add-imenu)
Thanks to @lawlist.