* mu4e: small update in doc
This commit is contained in:
@ -1460,13 +1460,14 @@ Let's look at some examples. First, suppose we want to set the
|
|||||||
(defun my-set-from-address ()
|
(defun my-set-from-address ()
|
||||||
"Set the From address based on the To address of the original."
|
"Set the From address based on the To address of the original."
|
||||||
(let ((msg mu4e-compose-parent-message)) ;; msg is shorter...
|
(let ((msg mu4e-compose-parent-message)) ;; msg is shorter...
|
||||||
(setq user-mail-address
|
(when msg
|
||||||
(cond
|
(setq user-mail-address
|
||||||
((mu4e-message-contact-field-matches msg :to "me@@foo.com")
|
(cond
|
||||||
"me@@foo.com")
|
((mu4e-message-contact-field-matches msg :to "me@@foo.com")
|
||||||
((mu4e-message-contact-field-matches msg :to "me@@bar.com")
|
"me@@foo.com")
|
||||||
"me@@bar.com")
|
((mu4e-message-contact-field-matches msg :to "me@@bar.com")
|
||||||
(t "me@@cuux.com"))))))
|
"me@@bar.com")
|
||||||
|
(t "me@@cuux.com")))))))
|
||||||
@end lisp
|
@end lisp
|
||||||
|
|
||||||
Second, as mentioned, @code{mu4e-compose-mode-hook} is especially useful for
|
Second, as mentioned, @code{mu4e-compose-mode-hook} is especially useful for
|
||||||
|
|||||||
Reference in New Issue
Block a user