鼠标悬停在模式行上时禁用帮助

Cal*_*laf 1 emacs

当鼠标悬停在模式行上时,会出现几行帮助(取决于上下文).

如何禁用此帮助?我想这样做是因为(至少对于OS X Lion上的Emacs 23),如果我在不移动鼠标的情况下切换到另一个程序,帮助就不会消失.

dki*_*kim 5

如果您的意思是"几行帮助"的工具提示,您可以让帮助字符串显示在回显区域而不是弹出窗口中:

(tooltip-mode nil)                      ; one-line help text in the echo area
Run Code Online (Sandbox Code Playgroud)

要么

(setq tooltip-use-echo-area t)          ; multi-line help text in the echo area
Run Code Online (Sandbox Code Playgroud)

如果您希望Emacs根本不显示帮助字符串,您可以将show-help-function变量设置为nil:

(tooltip-mode nil)
(setq show-help-function nil)
Run Code Online (Sandbox Code Playgroud)

C-hftooltip-mode

禁用工具提示模式时,Emacs会在回显区域中显示一行帮助文本,而不会显示弹出窗口.

C-hvtooltip-use-echo-area

使用回波区域而不是工具提示框架来获取帮助和GUD工具提示.要在回显区域中显示多行帮助文本,请将其设置为t并启用tooltip-mode.

32.19.4具有特殊含义的属性,GNU Emacs Lisp参考手册

变量: show-help-function

如果此变量为非nil,则它指定一个名为显示帮助字符串的函数.这些可能是help-echo属性,菜单帮助字符串或工具栏帮助字符串.使用一个参数调用指定的函数,即要显示的帮助字符串.工具提示模式提供了一个示例.