Update mu4e config

This commit is contained in:
2026-02-07 16:55:10 -08:00
parent 3bd367f30e
commit 125243e58c

14
init.el
View File

@ -3193,9 +3193,19 @@ The name is compared with the field name using TESTFN (defaults to `equal')."
:map message-mode-map
("C-c k" . khard-insert-email-contact))
:init
(require 'mu4e)
(evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer)
(evil-define-key '(normal motion) mu4e-view-mode-map "gy" #'mu4e-view-save-url)
(evil-define-key '(normal motion) mu4e-view-mode-map
"gy" #'mu4e-view-save-url
(kbd "RET") #'my/mu4e-evil-ret)
:config
(evil-define-motion my/mu4e-evil-ret (count)
"Push the button under point or move the cursor COUNT lines down.
This is the same as `evil-ret' except that it works for links in
`mu4e-view-mode'."
:type line
(if-let ((url (get-text-property (point) 'mu4e-url)))
(mu4e--view-browse-url-from-binding url)
(funcall-interactively #'evil-ret count)))
(defun my/-mu4e-setup-view-mode ()
(setq-local global-hl-line-mode nil)
(display-line-numbers-mode -1))