Rename Imenu into Outline

172 views Asked by At

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.

1

There are 1 answers

0
user3341592 On

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.