Skip to content

Instantly share code, notes, and snippets.

@avli
Last active January 26, 2020 03:29
Show Gist options
  • Save avli/98359e851bb0f0e43bfa to your computer and use it in GitHub Desktop.
Save avli/98359e851bb0f0e43bfa to your computer and use it in GitHub Desktop.
Simple Gnus configuration for reading Gmane
(setq gnus-select-method '(nntp "news.gmane.org"))
(setq gnus-thread-sort-functions
'(gnus-thread-sort-by-most-recent-number
gnus-thread-sort-by-subject
(not gnus-thread-sort-by-total-score)
gnus-thread-sort-by-most-recent-date))
(setq-default
gnus-summary-line-format "%U%R%d %-5,5L %-20,20n %B%-80,80S\n"
gnus-user-date-format-alist '((t . "%Y-%m-%d %H:%M"))
gnus-summary-thread-gathering-function 'gnus-gather-threads-by-references
gnus-sum-thread-tree-false-root ""
gnus-sum-thread-tree-indent " "
gnus-sum-thread-tree-leaf-with-other "├► "
gnus-sum-thread-tree-root ""
gnus-sum-thread-tree-single-leaf "╰► "
gnus-sum-thread-tree-vertical "│")
(setq smtpmail-smtp-server "smtp.gmail.com")
(setq user-mail-address "example@gmail.com")
(setq message-send-mail-real-function 'smtpmail-send-it)
(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it
smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
smtpmail-auth-credentials '(("smtp.gmail.com" 587
"example@gmail.com" nil))
smtpmail-default-smtp-server "smtp.gmail.com"
smtpmail-smtp-server "smtp.gmail.com"
smtpmail-smtp-service 587)
;; put this into ~/.gnus.el and create ~/.authinfo file with the
;; follwing information
;; machine smtp.gmail.com login example@gmail.com password secret port 587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment