Is there a way to make Emacs visit already visited file(with active buffer) via symbolic-link as a different file? I want them(links/file paths) to be visited by different buffers. It will be best if this behavior can be controlled with a directory local variable.
Why I need it:
I have a bunch of source files under actual project root source directory with a project file (it configures build tools) for production builds.
But I also have those files under a different root (for development environment)
The whole thing resides in the same git repo and has
((nil . ((find-file-visit-truename . nil)
(vc-follow-symlinks . nil))))
It works fine (despite obvious problems with version control). The only thing that is really inconvenient is that I sometimes visit source files via production root paths and then Emacs always opens them via the paths and it messes up with development tools/Emacs integration. So I have to kill the buffer and re-visit files under develop.