I'd like to use emacsclient to edit emails in Mutt.
I added this in .emacs
(server-start)
And in .muttrc I added
set editor="emacsclient -nw %s"
It seems they work.
When I start a second Emacs, it complains there is already a server running so it issues errors. How to make sure to do (server-start)
only if the server isn't already started?
Thanks
emacsclient -c
also works, and supports graphical clients. However, how would you go about opening a file in an existing emacs frame (say, in another terminal). Currently, I have a bash script callede
that checks to see if the first argument is-o
(for other) and runsemacsclient
without-c
if it does. Is there a better way, using the alias, that you can override the-t
and cause an existing frame to open the file? – Dorsoventral