Re: I messed up my groups display...
Pavan Mantha <[email protected]> Sun, 17 May 2026 22:12:42 +0530
| Newsgroups | gmane.emacs.gnus.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>>> Mekeor Melire <[email protected]>: >> Does anyone keep newsrc under version control (e.g. in Git >> repository)? I have been a Gnus user for barely a year and have repeatedly corrupted the newsrc file while trying features randomly or forgetting to quit Gnus properly. So I have started using version control and also format the eld file to make diffs easier to understand. Thus far, these measures have been super helpful. (defun gnus-indent-newsrc-eld-after-save (&rest _) "Format .newsrc.eld using pp-buffer after GNUS saves it." (let ((file (concat gnus-current-startup-file ".eld"))) (when (file-exists-p file) (message "Formatting %s..." (file-name-nondirectory file)) (with-current-buffer (find-file-noselect file) (let ((inhibit-read-only t) (buffer-backed-up t) (backup-inhibited t)) (pp-buffer) (save-buffer) (message "Formatted %s" (file-name-nondirectory file))) (kill-buffer))))) (advice-add 'gnus-save-newsrc-file :after #'gnus-indent-newsrc-eld-after-save) I do not back up my Home directory, I have instead moved the gnus-startup-file to a private notes repo which stays in sync across all machines.