3 ms·
STOW is great, it is simple and works well especially combined with git. That's what I do [0], and recently combined it with org-mode for literate programming,
by podiki 6y ago
STOW is great, it is simple and works well especially combined with git. That's what I do [0], and recently combined it with org-mode for literate programming, so each program has just a README.org that then generates all the files via org tangle [1] [2]. For example, here is my file that generates my Xorg configuration [3] over several files, nicely readable on GitHub, in Emacs, or just as plain text.
[0] https://github.com/podiki/dot.me/ https://github.com/podiki/dot.me/
[1] https://web.archive.org/web/20190924102437/https://expoundite.net/guides/dotfile-management https://web.archive.org/web/20190924102437/https://expoundit...
[2] https://orgmode.org/manual/Working-with-Source-Code.html https://orgmode.org/manual/Working-with-Source-Code.html
[3] https://github.com/podiki/dot.me/tree/master/x11 https://github.com/podiki/dot.me/tree/master/x11
- bambambazooka 6y agoI really like the idea! Thanks for mentioning it. I thought about converting my dotfiles to org-mode files but managing the tangling is always the step where I stop. I think I'd rather automate the tangling. I see you commit the tangled "results". Is this by choice or is it a compromise?
- podiki 6y agoI commit the tangled results so that I can use Stow directly on other computers. But this could be easily automated with a script (since you can tangle without opening emacs directly, or within the org file itself!) to tangle after any update, or even to pull in changes if you make them to the file directly. For example, you could have a hook so that on saving the org file it tangles to update any files, or on opening pull in changes you made directly in the result file (e.g. not in the org file directly). I saw some links on this but unfortunately don't have them handy. I'm sure they will come up with some searching, but let me know if you can't find anything.