My workflow has been very influenced by Kieran Healy’s The Plain Person’s Guide to Plain Text Social Science.
To this end, I make extensive use of emacs (the spacemacs variant, for which my dotfiles are on github). I will occasionally post explainers or tutorial posts on this (mostly so I can remember how did it six months ago!). There is not perfect why to use these tools or best way to get started and I would suggest just trying them out and customising them to your liking. Most of my workflow has been cribed from typing “thing I want emacs/spacemacs” into google and copying answers from github.
More to follow soon.