Emacs - 使用超时杀死建议缓冲区

时间:2013-02-01 22:50:56

标签: emacs dot-emacs

我知道这个解决方案已发布,但我找不到它。我用.emacs代码在n秒后自动终止建议缓冲区(我的设置为5)。这使我无需切换到该窗格并将其终止或打开90个自动完成或建议缓冲区。我不能再找到代码了。有人知道怎么做吗?

由于

2 个答案:

答案 0 :(得分:0)

尝试使用最近版本的Emacs中的Midnight Mode

答案 1 :(得分:0)

(run-with-idle-timer SECS REPEAT 'x-function)


Perform an action the next time Emacs is idle for SECS seconds.
The action is to call FUNCTION with arguments ARGS.
SECS may be an integer, a floating point number, or the internal
time format returned by, e.g., `current-idle-time'.
If Emacs is currently idle, and has been idle for N seconds (N < SECS),
then it will call FUNCTION in SECS - N seconds from now.

If REPEAT is non-nil, do the action each time Emacs has been idle for
exactly SECS seconds (that is, only once for each time Emacs becomes idle).

定义一个函数x函数,可以杀死你想要的缓冲区。

相关问题