From: Adam Spiers <orgmode@adamspiers.org>
To: emacs-orgmode@gnu.org
Subject: Re: hotkeys for org in gnome
Date: Mon, 24 Dec 2007 01:02:16 +0000 [thread overview]
Message-ID: <20071224010216.GB5797@atlantic.linksys.moosehall> (raw)
In-Reply-To: <f46c52560712221000u2ec1bf26n42fd20a1cc2072c1@mail.gmail.com>
On Sat, Dec 22, 2007 at 11:30:52PM +0530, Rustom Mody wrote:
> On Dec 22, 2007 9:22 PM, Bastien <bzg@altern.org> wrote:
> > "Eric Schulte" <schulte.eric@gmail.com> writes:
> >
> > > On Monday, December 17, at 15:20, Adam Spiers wrote:
> > > > On Mon, Dec 17, 2007 at 10:27:40AM +0400, Dmitri Minaev wrote:
> > > > > On Dec 15, 2007 8:34 AM, Rustom Mody <rustompmody@gmail.com> wrote:
> > > > > > I was wondering if there is some way that in addition to activating
> > > > > > emacs it is possible to run remember
[snipped]
> I guess that there are -- broadly speaking -- 3 ways of handling this:
>
> 1. A programmable window manager
> 2. Generating arbitrary sequence of events by stuffing the
> corresponding keys into the window manager using (something like)
> xrecord
> 3. Using emacs' own clientserver setup ie emacsclient
>
> I have as of now opted for the 3rd option. My setup is as follows:
>
> .emacs has the following:
>
> (server-start)
> (defun myserver ()
> (raise-frame)
> (make-frame-visible)
> (remember))
>
> gconf-editor->apps->metacity->keybindings->command_1 has the binding:
>
> bash -c "wmctrl -a emacs; emacsclient -n -e '(myserver)'"
> Actually it has
> bash -c "wmctrl -a emacs-snapshot-gtk; emacsclient.emacs-snapshot -n
> -e '(myserver)'"
> because of debian peculiarities with respect to emacs 22.
>
> And gconf-editor->apps->metacity->global-keybindings has run_command_1
> bound to the keystroke <mod4>e ie Win-e
Nice. I'm currently on the 2nd option as documented in a post a few
days again, but there's very little difference; in fact it could well
be worth me switching to the emacsclient approach as there are a few
minor issues with using xmacro.
> Note that this is not quite satisfactory to me because the raise-frame
> and the make-frame-visible are both redundant and insufficient.
You lost me there. .emacs is only run at startup, after which the
window manager can do anything it wants with the positioning and
visibility of the frames - or was that your point?
> Which is why I need the wmctrl. Which is why I need the bash -c.
Right. I'm using -c as well.
> If anyone finds a way of streamlining this please post it!
If it's the -c you don't like, you can always dump the commands in a
script. That's nice because it gives you more breathing space to do
things like error checking on the exit code of the wmctrl.
next prev parent reply other threads:[~2007-12-24 1:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-15 4:34 hotkeys for org in gnome Rustom Mody
2007-12-16 11:33 ` Adam Spiers
2007-12-16 16:56 ` Rustom Mody
2007-12-17 15:19 ` Adam Spiers
2007-12-17 6:27 ` Dmitri Minaev
2007-12-17 15:20 ` Adam Spiers
2007-12-17 15:41 ` Eric Schulte
2007-12-22 15:52 ` Bastien
2007-12-22 18:00 ` Rustom Mody
2007-12-24 1:02 ` Adam Spiers [this message]
2007-12-24 4:05 ` Rustom Mody
2007-12-24 12:32 ` Adam Spiers
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071224010216.GB5797@atlantic.linksys.moosehall \
--to=orgmode@adamspiers.org \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).