summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--gnus.el45
-rw-r--r--init.el7
2 files changed, 52 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)
diff --git a/init.el b/init.el index 4898d1a..862a2e2 100644 --- a/init.el +++ b/init.el
@@ -500,6 +500,13 @@
500 (:option nov-text-width fill-column) 500 (:option nov-text-width fill-column)
501 (:mode "\\.epub\\'")) 501 (:mode "\\.epub\\'"))
502 502
503(setup gnus
504 (:option gnus-home-directory (expand-file-name "gnus" user-emacs-directory)
505 gnus-directory (expand-file-name "gnus/News" user-emacs-directory)
506 gnus-init-file (expand-file-name "gnus.el" user-emacs-directory))
507 (when (not (file-exists-p gnus-directory))
508 (make-directory gnus-directory :parents)))
509
503(when (eq acdw/system :home) 510(when (eq acdw/system :home)
504 (setup (:straight pdf-tools) 511 (setup (:straight pdf-tools)
505 (pdf-loader-install)) 512 (pdf-loader-install))