all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to install emacs server on ubuntu
Date: Thu, 26 Nov 2009 19:35:59 +0100	[thread overview]
Message-ID: <hemhqh$78l$1@ger.gmane.org> (raw)
In-Reply-To: 20091126053809.GA31980@tomas

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.






  parent reply	other threads:[~2009-11-26 18:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-25 23:06 How to install emacs server on ubuntu n179911
2009-11-26  5:38 ` tomas
2009-11-26  8:35   ` n179911
2009-11-26  8:58     ` tomas
2009-11-26 18:09       ` n179911
2009-11-27  5:29         ` tomas
2009-11-28  8:34           ` n179911
2009-11-28 11:16             ` tomas
2009-11-26 18:35   ` Richard Riley [this message]
2009-11-26 20:50 ` Sven Bretfeld
2009-11-26 21:14   ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hemhqh$78l$1@ger.gmane.org' \
    --to=rileyrgdev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.