我们如何将Emacs的"Imenu“重命名为"Outline"?
我们的目标不是破坏任何其他东西,比如helm-imenu或helm-semantic- or -imenu。
发布于 2016-06-23 04:27:32
这是我在我的.emacs中找到的代码--现在将菜单命名为"Outline“(而不是”索引“或"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)感谢@lawlist。
https://stackoverflow.com/questions/37945661
复制相似问题