From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rustom Mody" Subject: Re: hotkeys for org in gnome Date: Sat, 22 Dec 2007 23:30:52 +0530 Message-ID: References: <20071217152035.GH13112@atlantic.linksys.moosehall> <18278.39083.265689.69826@gargle.gargle.HOWL> <87ejde7mmf.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J68ei-0003xL-Fy for emacs-orgmode@gnu.org; Sat, 22 Dec 2007 13:01:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J68ed-0003nP-V9 for emacs-orgmode@gnu.org; Sat, 22 Dec 2007 13:01:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J68ed-0003nA-Ll for emacs-orgmode@gnu.org; Sat, 22 Dec 2007 13:00:55 -0500 Received: from rv-out-0910.google.com ([209.85.198.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J68ec-0001Rs-QC for emacs-orgmode@gnu.org; Sat, 22 Dec 2007 13:00:55 -0500 Received: by rv-out-0910.google.com with SMTP id c27so1155708rvf.6 for ; Sat, 22 Dec 2007 10:00:52 -0800 (PST) In-Reply-To: <87ejde7mmf.fsf@bzg.ath.cx> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Dec 22, 2007 9:22 PM, Bastien wrote: > "Eric Schulte" 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 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 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!