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.
This commit is contained in:
Daniel - 2021-08-22 09:35:17 +02:00
parent e14a7248b0
commit 83dde6adc9
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 2 additions and 2 deletions

View File

@ -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)