The below function creates a new instance of the file myfile.txt
(regardless of if myfile.txt
is already opened or not).
How to force emacs to use the existing frame of that file (if any)?
(defun visit_my_file ()
(interactive)
(find-file "/path/to/myfile.txt" t))
Any alternative solution is welcomed.