aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-09-18 00:03:31 +0200
committerGravatar Tom Willemse2016-09-18 00:03:31 +0200
commiteb95d1e97b6a8a27a81124793ec584f0f9c766a7 (patch)
treec2e16c41355a1ba9a91cb1622f3119fd0402a3fa
parent6be84a24f416910cba2695a822a9dc73bfe14302 (diff)
downloadnew-dotfiles-eb95d1e97b6a8a27a81124793ec584f0f9c766a7.tar.gz
new-dotfiles-eb95d1e97b6a8a27a81124793ec584f0f9c766a7.zip
Add gmail email account
-rw-r--r--emacs/.emacs.d/init.org24
1 files changed, 24 insertions, 0 deletions
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.