From b6d74e42cd6a07f90d45b71c6a8020a66bef39fd Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 7 Jun 2024 08:31:12 +1000 Subject: [emacs] fix gnus directories --- emacs/.emacs.d/init/ycp-gnus.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'emacs/.emacs.d/init') 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 -- cgit v1.2.3