help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo emacsclient


From: Harry Putnam
Subject: sudo emacsclient
Date: Mon, 26 Oct 2009 12:03:07 -0500
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

How can I make emacslcient as handy to use as:

  sudo vim /etc/some.conf

Do I have to start a daemon as root?

I'd like to start the daemon from user account but be able to access
it like:
   sudo emacsclient -s name file

But trying that produces this error:
 sudo emacsclient -s name file
emacsclient: can't find socket; have you started the server?
To start the server in Emacs, type "M-x server-start".
emacsclient: error accessing socket "/tmp/emacs0/gen"

ps shows the server running:

 ps wwaux|grep emacs.*\-daemon
 reader  [...] emacs --daemon=name





reply via email to

[Prev in Thread] Current Thread [Next in Thread]