mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Mu4e: Ensure composing buffers are writable
This should always be the case, yet it doesn't seem like it always is. Just to be safe we will ensure that the buffer is not read-only.
This commit is contained in:
@ -200,6 +200,15 @@
|
|||||||
|
|
||||||
(add-hook 'mu4e-compose-pre-hook '+mu4e-set-from-address-h)
|
(add-hook 'mu4e-compose-pre-hook '+mu4e-set-from-address-h)
|
||||||
|
|
||||||
|
(defadvice! +mu4e-ensure-compose-writeable-a (&rest _)
|
||||||
|
"Ensure that compose buffers are writable.
|
||||||
|
This should already be the case yet it does not always seem to be."
|
||||||
|
:before #'mu4e-compose-new
|
||||||
|
:before #'mu4e-compose-reply
|
||||||
|
:before #'mu4e-compose-forward
|
||||||
|
:before #'mu4e-compose-resend
|
||||||
|
(read-only-mode -1))
|
||||||
|
|
||||||
(advice-add #'mu4e~key-val :filter-return #'+mu4e~main-keyval-str-prettier-a)
|
(advice-add #'mu4e~key-val :filter-return #'+mu4e~main-keyval-str-prettier-a)
|
||||||
(advice-add #'mu4e~main-action-str :override #'+mu4e~main-action-str-prettier-a)
|
(advice-add #'mu4e~main-action-str :override #'+mu4e~main-action-str-prettier-a)
|
||||||
(when (featurep! :editor evil)
|
(when (featurep! :editor evil)
|
||||||
|
Reference in New Issue
Block a user