help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs into focus


From: Ian Swainson
Subject: Re: Emacs into focus
Date: Fri, 08 Aug 2008 13:31:16 +1200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)

On Thursday 07 August 2008 at 05:36 PM, Richard G Riley <address@hidden> wrote:
> Can someone recommend the best way to have emacs come to the foreground
> on a Linux desktop?

I use wmctrl with a little script that I bind to a key combination which
either brings the app to the foreground or starts it if it is not running:

#!/bin/sh

###

# Switch to a screen or do something

###

if ! wmctrl -a $1; then $2; fi

I save this as switchto and then:

switchto "Mozilla Firefox" "firefox"

Perhaps wmctrl could be used in the same way for emacs?

Cheers,
ian

-- 
Ian Swainson

fortune says:
In every hierarchy the cream rises until it sours.
-- Dr. Laurence J. Peter

Created using Free Software on GNU/Linux http://www.getgnulinux.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]