mirror of https://github.com/djcb/mu.git
Merge pull request #104 from dpflug/patch-1
* fix parens typo in add-hook example
This commit is contained in:
commit
5c41f5f658
|
@ -1362,14 +1362,14 @@ Let's look at some examples. First, suppose we want to set the
|
||||||
(add-hook 'mu4e-compose-pre-hook
|
(add-hook 'mu4e-compose-pre-hook
|
||||||
(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
|
(setq user-mail-address
|
||||||
(cond
|
(cond
|
||||||
((mu4e-message-contact-field-matches msg :to "me@@foo.com")
|
((mu4e-message-contact-field-matches msg :to "me@@foo.com")
|
||||||
"me@@foo.com")
|
"me@@foo.com")
|
||||||
((mu4e-message-contact-field-matches msg :to "me@@bar.com")
|
((mu4e-message-contact-field-matches msg :to "me@@bar.com")
|
||||||
"me@@bar.com")
|
"me@@bar.com")
|
||||||
(t "me@@cuux.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
|
||||||
|
|
Loading…
Reference in New Issue