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

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

Re: How to install emacs server on ubuntu


From: Richard Riley
Subject: Re: How to install emacs server on ubuntu
Date: Thu, 26 Nov 2009 19:35:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

tomas@tuxteam.de writes:

> On Wed, Nov 25, 2009 at 03:06:36PM -0800, n179911 wrote:
>> Hi,
>> I read this follow wiki entry trying to install emacs server on ubuntu:
>> http://www.emacswiki.org/emacs/EmacsClient#toc5
>>
>> I have download the following script and cp it to /etc/init.d/emacsd
>> http://www.emacswiki.org/emacs/EmacsdInitScript
>>
>> And I restart my ubuntu, and I run 'emacsclient'.
>> I still get:
>> $  emacsclient
>> emacsclient: file name or argument required
>> Try `emacsclient --help' for more information
>
> Well? Did you try ;-)
>
> Thing is that the client needs a cookie file to know "where" the server
> is (and to show the server that it's allowed to). So, provided this
> server is running, it has put this cookie file somewhere (typically in
> your home dir, in emacs.d/server/server). I don't know how Ubuntu
> customizes this in partticular.

By far the easiest, and oft overlooked, method to start the server is to
use the alternative-editor parameter. My EDITOR env is ~/bin/edit where
"edit" is the following simply bash script:

,----
| #!/bin/bash
| # edit
| export GDK_NATIVE_WINDOWS=1
| exec emacsclient --alternate-editor="" -c "$@"
`----

emacsclient will start the daemon if it's not already started.






reply via email to

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