Fork me on GitHub

Morning All 🙂 Anyone got a good / reliable way to configure .gitignore to ignore ~undo-tree~ files under Spacemacs..?


Does **/*.*~undo-tree~ work? I assume this is related to the


The undo history could be switched off in .spacemacs dotspacemacs/user-config using

(setq undo-tree-auto-save-history nil)


Or set the directory for the undo-tree history files

(setq undo-tree-history-directory-alist '(("." . "~/var/emacs/undo")))


Thanks @U05254DQM I will turn it off I think!


Turn it off? 😬 Just saying: I recently lost about 2h of tinkering with code in VSCode because something screwed up and I didn't have (enough) undo ability to get it back. I'm used to in VIM to basically never lose anything. So... that episode plus that I am getting increasingly annoyed with some incorrect behavior in the VIM emulation on certain details, is why I'm now looking at Spacemacs again. (I used SM a bit a while back, not for clojure though). To each his own, but I will need forever persistent, unlimited undo 🙂

❤️ 1