Fork me on GitHub
#spacemacs
<
2022-03-23
>
maleghast12:03:30

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

practicalli-johnny14:03:21

Does **/*.*~undo-tree~ work? I assume this is related to the https://clojurians.slack.com/archives/C099W16KZ/p1647955414427979

practicalli-johnny14:03:21

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

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

practicalli-johnny14:03:16

Or set the directory for the undo-tree history files

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

maleghast15:03:20

Thanks @U05254DQM I will turn it off I think!

Gunnar13:03:19

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