当打开同时打开多个 window 时,keycast 只在最后一个 window 显示按键结果。
在前面一些的 window 却不会显示。
没有想明白原因,也不知道该怎么做,所以来当伸手党了(
图中的配置(无关)
(customize-set-variable 'keycast-separator-width 4)
(customize-set-variable 'keycast-remove-tail-elements nil)
(if (bound-and-true-p doom-modeline-mode)
(progn
(customize-set-variable
'keycast-insert-after '(:eval (doom-modeline-format--main)))
(customize-set-variable 'mode-line-keycast-format "%k"))
(progn
(customize-set-variable
'keycast-insert-after 'mode-line-misc-info)
(customize-set-variable 'mode-line-keycast-format "%s%k%r")))
(when (bound-and-true-p doom-modeline-mode)
(with-eval-after-load 'keycast
(defvar keycast-mode)
(define-minor-mode keycast-mode
"Show current command and its key binding in the mode line."
:group 'keycast
:global t
(if keycast-mode
(add-hook 'pre-command-hook 'keycast--update t)
(remove-hook 'pre-command-hook 'keycast--update)))
(add-to-list 'global-mode-string '("" mode-line-keycast))))
(customize-set-variable 'keycast-mode t)