From eb95d1e97b6a8a27a81124793ec584f0f9c766a7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 18 Sep 2016 00:03:31 +0200 Subject: [PATCH] Add gmail email account --- emacs/.emacs.d/init.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index afb4dee..00fca2b 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -729,6 +729,30 @@ To start off, first I need to enable lexical binding. '("-a" "picturefix")))))) #+END_SRC +*** gmail + + Add my other personal email as a secondary select method. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'gnus + (add-to-list 'gnus-secondary-select-methods + '(nnmaildir "gmail" + (directory "~/documents/mail/gmail/")))) + #+END_SRC + + When sending mail from the gmail account, use the gmail msmtp + accound and set the proper email address. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'gnus-msg + (add-to-list 'gnus-posting-styles + '("gmail:" + (name "Tom Willemse") + (address "ryuslash@gmail.com") + (eval (setq message-sendmail-extra-arguments + '("-a" "gmail")))))) + #+END_SRC + ** Linewise user-interface This is the library used by Circe and Slack to display messages.