diff options
| author | Jakob L. Kreuze | 2020-06-01 16:53:50 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2020-06-01 16:53:50 -0400 |
| commit | 6c7f0b8ae2de30a808901b16b0d462fe833ea1b4 (patch) | |
| tree | 2cc0a3e9022fc43c39e5b91f4e7832b5387636e9 /lisp/news.el | |
| parent | 4d4f759881e310818055c31f286158da9db60d1c (diff) | |
Break config into files.
Diffstat (limited to 'lisp/news.el')
| -rw-r--r-- | lisp/news.el | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lisp/news.el b/lisp/news.el new file mode 100644 index 0000000..df1cbf1 --- /dev/null +++ b/lisp/news.el @@ -0,0 +1,44 @@ +;;; news.el -*- lexical-binding: t; -*- +;;; +;;; Author: Jakob L. Kreuze <zerodaysfordays@sdf.org> +;;; URL: https://git.sr.ht/~jakob/.emacs.d/ +;;; +;;; Configuration for using Emacs as a newsreader. +;;; + +;; Most of my Gnus configuration is in gnus.el, which is not under version +;; control because it contains a list of my accounts on various email servers. + +;; Stop Gnus from making a mess of my home directory. + +(setq gnus-init-file "~/.emacs.d/gnus.el" + gnus-startup-file "~/.local/share/newsrc" + gnus-read-newsrc-file nil + gnus-save-newsrc-file nil + gnus-directory "~/.local/share/gnus/news/" + message-directory "~/.local/share/gnus/mail") + +;; Sort articles such that newer items are at the top of the summary buffer. + +(setq gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date)) + +;; Enable Flyspell so I don't make a fool of myself when composing messages. + +(add-hook 'message-mode-hook #'flyspell-mode) + +;; Use w3m to display HTML emails. Adapted from [1]. +;; +;; [1]: https://norman.walsh.name/2011/03/10/w3m + +(use-package w3m + :demand t + :config + (setq gnus-mime-display-multipart-related-as-mixed nil + mm-text-html-renderer #'w3m + mm-inline-text-html-with-images t + mm-inline-text-html-with-w3m-keymap nil + w3m-default-display-inline-images t)) + +;; Encrypt emails such that we can read them as well. + +(setq mml-secure-openpgp-encrypt-to-self t) |