emacs/var/elfeed/db/data/d1/d189d3f964e6f7f604d212c13129758c7639137c
2022-01-03 12:49:32 -06:00

1 line
1.4 KiB
Plaintext

<!-- SC_OFF --><div class="md"><p>I am new to Emacs and I am running it on macOS. I use the GUI app, but I frequently want to launch it from the command line. With VS Code, if I ran <code>code {filename}</code> it would launch VS Code (or use the existing copy running) and open the file I want to edit. It would then exit the <code>code</code> command so I could continue to use the terminal.</p> <p>If I run <code>emacs {filename}</code>, a new instance of the Emacs GUI is launched (even if there is an existing instance) and the command does not exit until I quit the GUI instance that is spawned. That isn&#39;t the largest problem - I can always open a new tab, but I would prefer it to not do so. I would also like it if the file I opened was added as a buffer to the existing instance of the GUI if one is already open.</p> <p>Is this possible to do? I tried to do some searching on my own first, but I&#39;m not even sure what terms to use for the searches and I (obviously) not been successful so far.</p> <p>Thanks for any help :)</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/BarbarianGeek"> /u/BarbarianGeek </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r3abry/how_to_launch_emacs_from_command_line_in_macos/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r3abry/how_to_launch_emacs_from_command_line_in_macos/">[comments]</a></span>