I noticed I never see in the mode line in which VCS branch I'm currently in, when I open a file in Emacs.
So I tried it with an empty Emacs, created a folder in Eshell, called ~/foo
, and initialized Git with git init
inside ~/foo
.
Then I have Emacs created a buffer inside ~/foo
with M-x find-file
bar.txt
. I saved the file, and in Eshell I did [user ~/foo] git add bar.txt
.
But I don't see any VCS-related in the mode line.
When I run C-x v = Emacs tells me that bar.txt
is not under version control. And the same story when I revert the buffer.
When I do the following M-: (eval (executable-find "git")
, it pointed to /usr/bin/git
which is correct.
Auto-revert-mode
didn't help it. What else can I do in order to figure out how this issue is caused? Git in terminal tells me that bar.txt
is recognized and tracked by Git.
M-:
is a command to evaluate an expression, so there's no need to useeval
within it.emacs -Q
?