summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-05-24 15:05:39 -0400
committerJakob L. Kreuze2019-05-24 15:05:39 -0400
commita89600cc2066454ed33ab51eb53342bd4390c79b (patch)
tree93d88fb3d468ce8730e5d79392a69c74e8320d06
parent684472246d98acce22e559517bb2baa8ea80e3b3 (diff)
Add configuration for Gnus
-rw-r--r--.gitignore1
-rw-r--r--jakob.org44
2 files changed, 45 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 76d7b89..1c78ffc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
irony/
straight/
transient/
+gnus.el
diff --git a/jakob.org b/jakob.org
index b2cd605..bee5ef0 100644
--- a/jakob.org
+++ b/jakob.org
@@ -1824,6 +1824,50 @@ Display the bar as a highlight on the most recently unread message.
(overlay-put erc-bar-overlay 'face `(:background ,black-2)))
#+END_SRC
+* News
+
+Stop Gnus from making a mess of my home directory.
+
+#+BEGIN_SRC elisp
+(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")
+#+END_SRC
+
+Wrap any poorly-formatted emails I receive.
+
+#+BEGIN_SRC elisp
+(setq gnus-treat-fill-article t)
+#+END_SRC
+
+Sort articles such that newer items are at the top of the summary buffer.
+
+#+BEGIN_SRC elisp
+(setq gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date))
+#+END_SRC
+
+Use w3m to display HTML emails. Adapted from [[https://norman.walsh.name/2011/03/10/w3m][this blog post]].
+
+#+BEGIN_SRC elisp
+(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))
+#+END_SRC
+
+Encrypt emails such that we can read them as well.
+
+#+BEGIN_SRC elisp
+(setq mml-secure-openpgp-encrypt-to-self t)
+#+END_SRC
+
* Games
** Speed Typing

© 2015 - 2026 Jakob L. Kreuze