summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-11-06 01:24:03 -0500
committerAmin Bandali <bandali@gnu.org>2018-11-06 01:24:03 -0500
commitea40ba6c05350f8aa70afebf4f66d7f0eb097f93 (patch)
tree6277792d52b5183c7f0fdef82c11f74eb4353770
parent3ffa47326264a6ff513936f36131b4003966115e (diff)
downloadconfigs-ea40ba6c05350f8aa70afebf4f66d7f0eb097f93.tar.gz
configs-ea40ba6c05350f8aa70afebf4f66d7f0eb097f93.tar.xz
configs-ea40ba6c05350f8aa70afebf4f66d7f0eb097f93.zip
[emacs] Gnus setup skeleton
-rw-r--r--init.org31
1 files changed, 31 insertions, 0 deletions
diff --git a/init.org b/init.org
index 5d760c8..7488fb8 100644
--- a/init.org
+++ b/init.org
@@ -1726,6 +1726,37 @@ Hopefully temporary.
(add-to-list 'recentf-exclude amin-maildir))
#+end_src
+** Gnus
+
+#+begin_src emacs-lisp :tangle yes
+(setq amin-gnus-init-file (no-littering-expand-etc-file-name "gnus"))
+
+(use-package gnus
+ :bind ("C-c m" . gnus)
+ :init
+ (setq
+ gnus-init-file amin-gnus-init-file
+ gnus-home-directory (no-littering-expand-var-file-name "gnus/")
+ gnus-directory (no-littering-expand-var-file-name "gnus/News/")
+ message-directory amin-maildir
+ gnus-save-newsrc-file nil
+ gnus-read-newsrc-file nil
+ gnus-gcc-mark-as-read t))
+
+(use-package mm-decode
+ :config
+ (setq mm-discouraged-alternatives '("text/html" "text/richtext")))
+#+end_src
+
+# #+begin_src emacs-lisp :tangle (concat gnus-init-file ".el") :mkdirp yes
+#+begin_src emacs-lisp :tangle no
+(setq gnus-select-method
+ '(nnmaildir "gnu"
+ (directory "~/mail/gnu/")
+ (directory-files nnheader-directory-files-safe)
+ (get-new-mail nil)))
+#+end_src
+
** sendmail
#+begin_src emacs-lisp