emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Rustom Mody" <rustompmody@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: hotkeys for org in gnome
Date: Sat, 22 Dec 2007 23:30:52 +0530	[thread overview]
Message-ID: <f46c52560712221000u2ec1bf26n42fd20a1cc2072c1@mail.gmail.com> (raw)
In-Reply-To: <87ejde7mmf.fsf@bzg.ath.cx>

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
> >  > >
> >  > > I believe this is one more argument in favor of scriptable window
> >  > > managers. In Stumpwm, Sawfish and, I assume, in Ion it's a trivial
> >  > > task.
> >  >
> >  > Agreed!  Alas, I was forced to abandon sawfish after its development
> >  > and maintenance slowed down to a crawl.
> >
> > I've been looking into window managers which can integrate well
> > w/emacs, and it looks like FVWM http://fvwm.org/ is *very*
> > customizable, and it is actively maintained.
>
> For those who speak python, I've just discover this new window manager
> and think it could get along great with Emacs: PycaWM
>
> http://pycawm.last-exile.org/
>
> --
> Bastien

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

Note that this is not quite satisfactory to me because the raise-frame
and the make-frame-visible are both redundant and insufficient.  Which
is why I need the wmctrl. Which is why I need the bash -c.

If anyone finds a way of streamlining this please post it!

  reply	other threads:[~2007-12-22 18:01 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 [this message]
2007-12-24  1:02           ` Adam Spiers
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=f46c52560712221000u2ec1bf26n42fd20a1cc2072c1@mail.gmail.com \
    --to=rustompmody@gmail.com \
    --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).