我设置了hide-mode-line如下但是在embark-act时还是会出现如下的modeline?
(require 'hide-mode-line)
(hide-mode-line-mode)
(global-hide-mode-line-mode)
embark的设置如下:
(use-package embark
:ensure t
:bind
(("C-." . embark-act) ;; pick some comfortable binding
("M-." . embark-dwim) ;; good alternative: M-.
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
:init
;; Optionally replace the key help with a completing-read interface
(setq prefix-help-command 'embark-prefix-help-command)
;; Show the Embark target at point via Eldoc. You may adjust the Eldoc
;; strategy, if you want to see the documentation from multiple providers.
(add-hook 'eldoc-documentation-functions #'embark-eldoc-first-target)
(setq eldoc-documentation-strategy #'eldoc-documentation-compose-eagerly)
;; :custom
;; (add-hook 'embark-act-buffer-hook
;; (lambda ()
;; (setq mode-line-format nil)))
;; (setq mode-line-format nil)
;; (add-hook 'embark-act-buffer-hook #'hide-mode-line-mode)
:config
;; Hide the mode line of the Embark live/completions buffers
(add-to-list 'display-buffer-alist
'("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*"
nil
(window-parameters (mode-line-format . none))))
)
用emacs -Q -l init-emacs.el测试后embark-act的modeline也没有隐藏. mac, [email protected],embark-20231112