有可能以有选择的方式隐藏Emacs中的菜单项吗? [英] Is it possible to hide menu items in Emacs in a selective way?

查看:175
本文介绍了有可能以有选择的方式隐藏Emacs中的菜单项吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Emacs中清理菜单,因为我认为其中的一些选项是噪音。有没有选择性地删除菜单选项的方法?

解决方案

菜单只是 keymap 在Emacs。请参阅文档



尽管如此,我花了很多时间思考如何在Emacs旅程开始时获得
菜单,但是作为
我更多地使用了Emacs,我发现我从来没有使用菜单作为我的工作流程的一部分。
很少,我点击菜单可以快速了解一个新包的功能
组织。



编辑:



IMO对于不重要的事情来说,不健康,但是如果你
坚持...这是Emacs毕竟。 :)



这是一封电子邮件线程有人问这个问题:



删除mentaltherapist:

 (define-key menu-bar-help-menu [emacs-psychotherapist] nil)


I'd like to sanitize the menus in Emacs since I consider some of the options in them to be noise. Is there a way to remove menu options selectively?

解决方案

Menus are just keymaps in Emacs. See documentation

A word of caution though -- I spent a lot of time thinking about how to get menus exactly the way I want them in the beginning of my Emacs journey, but as I used Emacs more, I found I never used menus as a part of my workflow. Rarely, I would click on menus to get a quick overview of the feature organization of a new package.

EDIT:

IMO it's not healthy to dwell on things that just don't matter, but if you insist ... this is Emacs after all. :)

Here is an e-mail thread of someone asking this:

To remove psychotherapist:

(define-key menu-bar-help-menu [emacs-psychotherapist] nil)

这篇关于有可能以有选择的方式隐藏Emacs中的菜单项吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆