我的行号显示配置如下:
(use-package display-line-numbers
:ensure nil
:init
(setq display-line-numbers-width-start t)
(setq display-line-numbers-current-absolute t)
(setq-default display-line-numbers 'visual)
:config
(dolist (mode '(org-mode-hook
term-mode-hook
eshell-mode-hook
vterm-mode-hook
which-key-mode-hook
helpful-mode-hook
help-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0)))))
按照我的理解,既然已经(add-hook 'which-key-mode-hook (lambda () (display-line-numbers-mode 0)))
了,那which-key buffer中应该没有行号了才对,但是实际上仍然存在行号。请问该如何关闭which-key-mode中的buffer呢?