I'm fairly new to spacemacs/emacs, so apologies if this is a trivial question.
I'm using org-mode for my notes, stored within nvAlt. This works wonderfully in terms of searching/syncing, however emacs seems to keep creating numbered backups. I.e. if I have a note called todo.org
, it will keep creating files called todo.1.org
all the way through to todo.10.org
and so on. Furthermore, the currently opened buffer would undo a bunch of latest changes I made, presumably because a new backup was created. This can be rather irritating.
I looked into how emacs handles backups, and this seems to be slightly different to the classic numbered backups (i.e. I would expect them to look like todo.org.~1~
), so it seems like a custom backup format to spacemacs.
I did try to move the backups to a different location via
(setq backup-directory-alist `(("." . "~/.emacs_saves")))
(setq backup-by-copying t)
(setq auto-save-file-name-transforms `(("." "~/.emacs_saves" t)))
but to no avail.
What would be a good way to move the backup files, so they don't cause the abrupt "undos"?
(setq backup-inhibited t)
and(setq auto-save-default nil)
to see if the behaviour continues