Fork me on GitHub
#emacs
<
2021-08-16
>
vemv23:08:29

Random share, this is one of my most effective productivity boosters I've come up with lately https://github.com/zenmacs/.emacs.d/blob/master/scripts/first_diff_line.sh When I open a file it jumps to line $n based on git status or git log. This way I can restore the "context" of what I was working on, quicker

vemv23:08:56

This is the integration point https://github.com/zenmacs/.emacs.d/blob/f98c95e9bdf77d979b82f5ad6024a6f9ab39d341/lib/non-submodules/vemv.open.el#L7-L21 It plays nicely with another command which I call open-all-git-files . It will open each file displayed by git status So you can open N files with one command and have all of them jump to the right line number in an instant. Feels like magic every time :)

rakyi10:08:56

do you know about save-place-mode?

vemv10:08:38

apparently I do because I have (setq-default save-place t) in my config 😇 I was partly happy with save-place and possibly other complementary functionality (desktop.el IIRC?) but ultimately git is the best source of truth for me especially as you change branches - then the right LOC to jump to will vary

👍 3
gammarray12:08:09

Rad. You may also be interested in this new library for keeping track of where you were working: https://github.com/alphapapa/dogears.el

🐶 5
👍 3
h0bbit04:08:47

Your .emacs.d is … intimidating to say the least 😄 Bookmarking it to go through it as and when time permits.

vemv04:08:57

haha, thanks 🌀 as the readme hints, at some point I intended to share it the community... I don't currently, might get back to it a few years from now. I prefer to pick my battles and share .clj work instead