From f6bb4ec55c39478163c8604d7cf6488d51de172c Mon Sep 17 00:00:00 2001 From: JSDurand Date: Thu, 23 Dec 2021 09:40:31 +0800 Subject: 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. --- mail.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'mail.el') 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) -- cgit v1.2.3-18-g5258