任何移动命令都会导致 minibuffer 中的 eldoc-message 闪烁。禁用 evil-mode 可以消除闪烁。
从 eldoc 文档中,我找到了这个相关片段。
我该如何在启用evil-mode时防止闪烁?
从 eldoc 文档中,我找到了这个相关片段。
;; This function goes on pre-command-hook for XEmacs or when using idle
;; timers in Emacs. Motion commands clear the echo area for some reason,
;; which make eldoc messages flicker or disappear just before motion
;; begins. This function reprints the last eldoc message immediately
;; before the next command executes, which does away with the flicker.
;; This doesn't seem to be required for Emacs 19.28 and earlier.
(defun eldoc-pre-command-refresh-echo-area ()
(and eldoc-last-message
(if (eldoc-display-message-no-interference-p)
(eldoc-message eldoc-last-message)
(setq eldoc-last-message nil))))
我该如何在启用evil-mode时防止闪烁?