I'm attempting to make changes to an Emacs package. I currently have the version in use installed in ~/.emacs.d/elpa/<package> and the source checked out from git in /src/<package>.
When I navigate to, for example, fileA.el in /src/<package> and press M-. (xref-find-definitions) on an identifier in fileB.el, Emacs will jump into ~/.emacs.d/elpa/<package>/fileB.el. I would prefer if it instead jumped to /src/<package>/fileB.el.
Now, I've created a TAGS file, and that seems to work correctly if I call M-x xref-etags-mode prior to using M-.. However, I don't want to remember to do that for every buffer that I open. Is there an easier solution?
For clarity, /src/<package> is /not/ on my load-path (and I would like to keep it that way).