この解決策が投稿されていることは知っていますが、見つかりません。n秒後に提案バッファを自動的に強制終了する.emacsコードがありました(私の場合は5に設定されていました)。これにより、そのペインに切り替えて強制終了したり、90 個のオートコンプリートまたは提案バッファーを開いたりする必要がなくなりました。私はもはやコードを見つけることができません。誰もこれを行う方法を知っていますか?
ありがとう
(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-function を定義します。