From 83dde6adc932cdf387929b433fb364c26f022c60 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 22 Aug 2021 09:35:17 +0200 Subject: [PATCH] Move main part of Gnus' files out of private configuration directory Those files are specific for each machine where Emacs is running and change often, and should not be included as private configuration files. Indeed, those files might be versioned (e.g., using git) and deploying those versioned configuration files over multiple machines would cause a number of conflicts if Gnus' local mail files would be included as well (as has happend to me). Since those machine-specific files are not really relevant for other machines, keeping them somewhere else is reasonable. The new default is $HOME/.config/gnus-news. Note that the main gnus-newsrc file is still kept as private configuration file. --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index 67e7e78..be9f529 100644 --- a/init.el +++ b/init.el @@ -1539,8 +1539,8 @@ ;; General Gnus configuration (setq gnus-init-file (expand-file-name "gnus.el" emacs-d) - gnus-home-directory (expand-file-name "private/news/" emacs-d) - gnus-directory (expand-file-name "private/news/" emacs-d) + gnus-home-directory (expand-file-name "~/.config/gnus-news") + gnus-directory gnus-home-directory gnus-kill-files-directory gnus-directory gnus-startup-file (expand-file-name "private/gnus-newsrc" emacs-d) gnus-cache-directory (expand-file-name "cache/" gnus-directory)