codethrasher · 2022-02-28 17:42
Ideally, if I switch my git branch on my command line and focus back to Emacs, I'd like the branch name in the modeline (using Doom modeline, atm) to reflect that. For whatever reason mine doesn't seem to update at all.
nv-elisp · 2022-02-28 17:44
revert your buffer
codethrasher · 2022-02-28 17:46
That worked and it makes sense, but how would I have it update on its own? I imagine some sort of timeout function...but I'm not _that_ competent with elisp yet.
nv-elisp · 2022-02-28 18:18
Now you have more information to search with.
Try searching "emacs version control modeline revert buffer".
[deleted] · 2022-02-28 18:35
[deleted]
sebhoagie · 2022-02-28 22:41
The fourth item at [https://github.com/seagle0128/doom-modeline#faq](https://github.com/seagle0128/doom-modeline#faq) addresses this problem.
Check out [https://magit.vc/manual/magit/The-mode\_002dline-information-isn\_0027t-always-up\_002dto\_002ddate.html](https://magit.vc/manual/magit/The-mode_002dline-information-isn_0027t-always-up_002dto_002ddate.html) for the details