aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2024-06-07 08:31:12 +1000
committerYuchen Pei <id@ypei.org>2024-06-07 08:31:12 +1000
commitb6d74e42cd6a07f90d45b71c6a8020a66bef39fd (patch)
tree14690a08c425d18928a7ff8b1e8605d8e2688bcd
parentbad6d8532b3cc36ecf083287db0603d56018e2bf (diff)
[emacs] fix gnus directories
-rw-r--r--emacs/.emacs.d/init/ycp-gnus.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/ycp-gnus.el b/emacs/.emacs.d/init/ycp-gnus.el
index 90a2c5a..27ed0bd 100644
--- a/emacs/.emacs.d/init/ycp-gnus.el
+++ b/emacs/.emacs.d/init/ycp-gnus.el
@@ -97,6 +97,18 @@
"C-c n u" #'gnus-group-get-new-news)
(my-server-timer my-gnus-new-news-timer nil 300
'my-gnus-group-get-new-news-quietly)
+ ;; https://superuser.com/questions/519685/gnus-get-rid-of-mail-and-news-folders
+ ;; this also fixes issues with presumably nonexisting
+ ;; nndraft-directory causing
+ ;; (wrong-type-argument stringp nndraft-directory)
+ ;; which may require a restart of gnus to fix
+ (setq message-directory "~/.emacs.d/mail/")
+ (setq gnus-directory "~/.emacs.d/news/")
+ (setq nnfolder-directory "~/.emacs.d/mail/archive")
+ (setq nndraft-directory "~/.emacs.d/mail/drafts/")
+ (setcdr (assoc 'nndraft-directory
+ (nnoo-variables 'nndraft))
+ nndraft-directory)
)
(my-configure