Merge pull request #104 from dpflug/patch-1

* fix parens typo in add-hook example
This commit is contained in:
Dirk-Jan C. Binnema 2012-11-29 12:14:12 -08:00
commit 5c41f5f658
1 changed files with 2 additions and 2 deletions

View File

@ -1362,14 +1362,14 @@ Let's look at some examples. First, suppose we want to set the
(add-hook 'mu4e-compose-pre-hook
(defun my-set-from-address ()
"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
(cond
((mu4e-message-contact-field-matches msg :to "me@@foo.com")
"me@@foo.com")
((mu4e-message-contact-field-matches msg :to "me@@bar.com")
"me@@bar.com")
(t "me@@cuux.com")))))))
(t "me@@cuux.com"))))))
@end lisp
Second, as mentioned, @code{mu4e-compose-mode-hook} is especially useful for