diff options
author | Case Duckworth | 2021-04-19 15:25:53 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-19 15:25:53 -0500 |
commit | f09752f5a0880a70b31d0babfa42cc3aaff3c039 (patch) | |
tree | 52d074928be13f000608a04837fe08ee376f9d51 /gnus.el | |
parent | Add `acdw/kill-a-buffer' and keybinding (diff) | |
parent | Add (and ignore) pkg/ (diff) | |
download | emacs-f09752f5a0880a70b31d0babfa42cc3aaff3c039.tar.gz emacs-f09752f5a0880a70b31d0babfa42cc3aaff3c039.zip |
Merge branch 'main' of https://tildegit.org/acdw/emacs
Diffstat (limited to 'gnus.el')
-rw-r--r-- | gnus.el | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gnus.el b/gnus.el new file mode 100644 index 0000000..d211f70 --- /dev/null +++ b/gnus.el | |||
@@ -0,0 +1,45 @@ | |||
1 | ;;; gnus.el -*- lexical-binding: t; coding: utf-8-unix -*- | ||
2 | |||
3 | ;; Author: Case Duckworth <acdw@acdw.net> | ||
4 | ;; Created: Sometime during Covid-19, 2020 | ||
5 | ;; Keywords: configuration | ||
6 | ;; URL: https://tildegit.org/acdw/emacs | ||
7 | |||
8 | ;; This file is NOT part of GNU Emacs. | ||
9 | |||
10 | ;;; License: | ||
11 | ;; Everyone is permitted to do whatever with this software, without | ||
12 | ;; limitation. This software comes without any warranty whatsoever, | ||
13 | ;; but with two pieces of advice: | ||
14 | ;; - Don't hurt yourself. | ||
15 | ;; - Make good choices. | ||
16 | |||
17 | ;;; Code: | ||
18 | |||
19 | ;; https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/master/gnus-guide-en.org | ||
20 | |||
21 | ;; searching (?) | ||
22 | (require 'nnir) | ||
23 | |||
24 | ;; contacts | ||
25 | (setup (:straight bbdb) | ||
26 | (require 'bbdb) | ||
27 | (bbdb-initialize 'message 'gnus 'sendmail) | ||
28 | (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) | ||
29 | (:option bbdb/mail-auto-create-p t | ||
30 | bbdb/news-auto-create-p t)) | ||
31 | |||
32 | ;; select methods | ||
33 | (setq gnus-select-method '(nnimap "fastmail" | ||
34 | (nnimap-address "imap.fastmail.com") | ||
35 | (nnimap-server-port 993) | ||
36 | (nnimap-stream ssl) | ||
37 | (nnir-search-engine imap))) | ||
38 | |||
39 | ;; options | ||
40 | (setq gnus-thread-sort-functions '(gnus-thread-sort-by-most-recent-date | ||
41 | (not gnus-thread-sort-by-number)) | ||
42 | gnus-use-cache t | ||
43 | gnus-summary-thread-gathering-function #'gnus-gather-threads-by-subject | ||
44 | gnus-thread-hide-subtree t | ||
45 | gnus-thread-ignore-subject t) | ||