unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: n179911 <n179911@gmail.com>
To: tomas@tuxteam.de
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to install emacs server on ubuntu
Date: Sat, 28 Nov 2009 00:34:36 -0800	[thread overview]
Message-ID: <3b9893450911280034g39a9b0falfb856b2c5cea9c49@mail.gmail.com> (raw)
In-Reply-To: <20091127052933.GA24329@tomas>

[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]

Thank you Tomas.

I use this way, which works for me:

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.

On Thu, Nov 26, 2009 at 9:29 PM, <tomas@tuxteam.de> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, Nov 26, 2009 at 10:09:13AM -0800, n179911 wrote:
> > On Thu, Nov 26, 2009 at 12:58 AM, <tomas@tuxteam.de> wrote:
> > >
> > >
> > > Basically, I think it's not a good idea to start the server from init.d
> > > - -- it's a user thing, so it should be started on user session.
> > >
> > > Thank you. Tomas.
> >
> > How can I unstall the script?
> > >    1. cp emacsd /etc/init.d/
> > >    2. chmod 755 /etc/init.d/emacsd
> > >    3. update-rc.d emacsd defaults
> >
> > I did the last step 'update-rc.d', how can I reverse the change done by
> that
> > 'update-rc.d' script?
>
> With 'update-rc.d' itself: just type
>
>  update-rc.d emacsd remove
>
> Note that it won't delete the script in /etc/init.d/emacsd. It will set
> up things so that in won't be called at start/stop of the system.
>
> (You can learn such things by invoking the manual page of update-rc.d:
> just type at a terminal window: "man update-rc.d").
>
> Did you investigate the other avenues? Do you now know why it didn't
> work?
>
> Regards
> - -- tomás
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFLD2O9Bcgs9XrR2kYRAmXQAJ9K+gD5yuFNVweTLZ064e6SrbHjsgCff6lE
> 33/6jTBv3AmC3EjxU98lJlo=
> =PjMV
> -----END PGP SIGNATURE-----
>

[-- Attachment #2: Type: text/html, Size: 2520 bytes --]

  reply	other threads:[~2009-11-28  8:34 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 [this message]
2009-11-28 11:16             ` tomas
2009-11-26 18:35   ` Richard Riley
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=3b9893450911280034g39a9b0falfb856b2c5cea9c49@mail.gmail.com \
    --to=n179911@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).