mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Mu4e: make msg compose advice more transparent
... to functions that call the original function
This commit is contained in:
@ -245,11 +245,11 @@ Usefull for affecting HTML export config.")
|
||||
(setq +mu4e-compose-org-msg-toggle-next
|
||||
(not +mu4e-compose-org-msg-toggle-next))))
|
||||
|
||||
(defadvice! mu4e-maybe-toggle-org-msg (orig-fn toggle-p)
|
||||
(defadvice! mu4e-maybe-toggle-org-msg (orig-fn &optional toggle-p)
|
||||
:around #'mu4e-compose-new
|
||||
:around #'mu4e-compose-reply
|
||||
(interactive "p")
|
||||
(mu4e-compose-org-msg-handle-toggle (/= 1 toggle-p))
|
||||
(mu4e-compose-org-msg-handle-toggle (/= 1 (or toggle-p 0)))
|
||||
(funcall orig-fn))
|
||||
|
||||
(defvar +org-msg-accent-color "#c01c28"
|
||||
|
Reference in New Issue
Block a user