summaryrefslogtreecommitdiff
path: root/mail.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-12-23 09:40:31 +0800
committerJSDurand <mmemmew@gmail.com>2021-12-23 09:48:54 +0800
commitf6bb4ec55c39478163c8604d7cf6488d51de172c (patch)
treecce5b2feab724792c641967cd494bcbd82de084f /mail.el
parente8dbbb51a261d189e8c486cf6ce90b533e0d479f (diff)
mail: small fixes
* mail.el (message-mode-hook): set fill-column to 70, and set the smtp user name correctly, so that Emacs can find my password.
Diffstat (limited to 'mail.el')
-rw-r--r--mail.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail.el b/mail.el
index 58af042..308e078 100644
--- a/mail.el
+++ b/mail.el
@@ -64,7 +64,7 @@
(user-full-name . "李俊緯")
(mu4e-compose-signature . "生 俊緯")
(mu4e-sent-folder . "/gmail/sent")
- (smtpmail-smtp-user . "mmemmew")
+ (smtpmail-smtp-user . "mmemmew@gmail.com")
(smtpmail-local-domain . "gmail.com")
(smtpmail-default-smtp-server . "smtp.gmail.com")
(smtpmail-smtp-server . "smtp.gmail.com")
@@ -101,8 +101,18 @@
(user-full-name . "Durand")
(mu4e-compose-signature . "Sévère Durand")
(mu4e-sent-folder . "/gmail/sent")
- (smtpmail-smtp-user . "mmemmew")
+ (smtpmail-smtp-user . "mmemmew@gmail.com")
(smtpmail-local-domain . "gmail.com")
(smtpmail-default-smtp-server . "smtp.gmail.com")
(smtpmail-smtp-server . "smtp.gmail.com")
(smtpmail-smtp-service . 587))))))
+
+;;; message mode
+
+(require 'message)
+
+(defun durand-set-fill-column ()
+ "Set the fill-column to an appropriate value."
+ (setq fill-column 70))
+
+(add-hook 'message-mode-hook #'durand-set-fill-column)