[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sudo emacsclient
From: |
Thierry Volpiatto |
Subject: |
Re: sudo emacsclient |
Date: |
Mon, 26 Oct 2009 18:35:31 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
Hi!
Try to use tramp:
In your emacs session, just do:
C-x C-f /sudo::/etc/some.conf
If you start emacs --daemon, just start an emacsclient and do like
above.
Or:
emacsclient -t /sudo::/etc/some.conf
Harry Putnam <reader@newsguy.com> writes:
> 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
>
>
>
>
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France