Skip to content

Instantly share code, notes, and snippets.

@mplscorwin
Created January 26, 2020 02:24
Show Gist options
  • Save mplscorwin/2bd7416eb3c71c2df351c45e144bccbf to your computer and use it in GitHub Desktop.
Save mplscorwin/2bd7416eb3c71c2df351c45e144bccbf to your computer and use it in GitHub Desktop.
Configure Emacs to read Gmail with gnus
;; ~/.gnus
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com") ; it could also be imap.googlemail.com if that's your server.
(nnimap-server-port "imaps")
(nnimap-stream ssl)
(nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash")
(nnmail-expiry-wait immediate)))
(setq smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587
gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment