From: rustom <rustompmody@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacsclient usage
Date: Tue, 18 Dec 2007 00:07:41 -0800 (PST) [thread overview]
Message-ID: <e15f8380-39f3-4b77-80ca-342b7149f88a@e23g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.5124.1197923852.18990.help-gnu-emacs@gnu.org
On Dec 17, 8:03 pm, Nikos Apostolakis <nikos...@gmail.com> wrote:
> rustom <rustompm...@gmail.com> writes:
> > Trying to use emacsclient (though not yet sure its what I need to
> > use :-) ) came upon the following questions:
>
> > 1. How do I tell emacsclient that my server is not emacs but emacs-
> > snapshot-gtk ?
>
> If you are using Debian then each emacs flavor has its own server.
> For emacs-snapshot-gtk is probably emacsclient.emacs-snapshot.
> Still on Debian you can make emacs-snapshot and its client the
> standard alternative for emacs by using the command
> `update-alternatives'.
>
> > 2. How do I tell emacsclient (to tell the server...) not to read a
> > file but to run a command (say remember)
>
> > Note in my attempts so far it barfs at the -e option though the man
> > page shows it. It accepts and ignores the -a or ALTERNATE_EDITOR
> > settings
>
> I think that the -e option is relatively recent, it doesn't work
> with older emacsclient.
>
> HTH,
> Nikos
Thanks that was quite helpful.
Ive set gconf-editor->apps->metacity->keybinding-commands->command_1
to the foll:
bash -c "wmctrl -a emacs-snapshot-gtk; emacsclient.emacs-snapshot -e
'(remember)'"
The wmctrl is required because the emacsclient on its own does not
activate the emacs window.
And because of that the bash -c is required.
Is there a neater way?
next prev parent reply other threads:[~2007-12-18 8:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-17 18:36 emacsclient usage rustom
2007-12-17 15:03 ` Nikos Apostolakis
[not found] ` <mailman.5124.1197923852.18990.help-gnu-emacs@gnu.org>
2007-12-18 8:07 ` rustom [this message]
2007-12-18 9:58 ` Andrea Vettorello
2007-12-18 19:48 ` Lennart Borgman (gmail)
2007-12-18 22:17 ` Andrea Vettorello
2007-12-18 23:17 ` Lennart Borgman (gmail)
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=e15f8380-39f3-4b77-80ca-342b7149f88a@e23g2000prf.googlegroups.com \
--to=rustompmody@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.