fix(wanderlust): start wl-summary-mode in emacs state (#5266)
This commit is contained in:
parent
b598d83aeb
commit
1467c075f7
1 changed files with 7 additions and 4 deletions
|
@ -71,9 +71,12 @@
|
|||
(setq wl-message-id-domain wl-local-domain)
|
||||
|
||||
(when (featurep! :editor evil)
|
||||
;; Neither wl-folder-mode or wl-summary-mode are correctly defined as major
|
||||
;; modes, so `evil-set-initial-state' won't work here.
|
||||
(add-hook! '(wl-folder-mode-hook wl-summary-mode-hook)
|
||||
#'evil-emacs-state))
|
||||
;; Neither `wl-folder-mode' nor `wl-summary-mode' are correctly defined as
|
||||
;; major modes, so we cannot use `set-evil-initial-state!' here.
|
||||
;; In addition, `wl-folder-mode' won't start in `evil-emacs-state' through
|
||||
;; `evil-emacs-state-modes', and `wl-summary-mode' won't start in
|
||||
;; `evil-emacs-state' through `wl-summary-mode-hook'.
|
||||
(add-hook! 'wl-folder-mode-hook #'evil-emacs-state)
|
||||
(pushnew! evil-emacs-state-modes 'wl-summary-mode))
|
||||
|
||||
(add-hook 'mime-edit-mode-hook #'auto-fill-mode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue