Say, I got
~/.emacs which is a soft link to
ln -s ~/.emacs.d/init.el ~/.emacs) which is in a git repo, because this will make it easier to reach
init.el, outside or inside Emacs.
When I edit the file using bookmarks(bookmark for
C-x C-f to
~/.emacs directly, it will only edit the link, I use
(setq vc-follow-symlinks 'nil) to not prompt to ask yes/no and not follow to the real file, (e.g.,
M-: (buffer-file-name) shows the
But sometimes I want to show the diff of this file, the
C-x v = will not work for the link, it works in the file if I follow the link to it or open
~/.emacs,d/init.el directly. I don't want to do
M-x magit-status and then
~/.emacs.d/ repo and then find the init.el and then
TAB, so is there an easy way to show the diff of the file??