From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Brody, William (Buck)" Subject: RE: switching to emacs via keboard shortcut Date: Tue, 2 Feb 2010 14:15:08 -0500 Message-ID: <46FF04F1BA077D4586212E7E31C57D2A01DB36FF25@MAIL.darden.virginia.edu> References: <46FF04F1BA077D4586212E7E31C57D2A01DB36F5F4@MAIL.darden.virginia.edu> <4B6862BF.2050101@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcODk-0004rp-Dd for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:15:32 -0500 Received: from [199.232.76.173] (port=57715 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcODk-0004rh-0m for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:15:32 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcODi-00068x-14 for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:15:31 -0500 Received: from proteus2.darden.virginia.edu ([128.143.59.148]:60226 helo=mail.darden.virginia.edu) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.60) (envelope-from ) id 1NcODh-00068l-Ny for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 14:15:29 -0500 In-Reply-To: <4B6862BF.2050101@online.de> Content-Language: en-US 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: Rainer Stengele Cc: "emacs-orgmode@gnu.org" Thanks. These are great and work like a charm. -----Original Message----- From: Rainer Stengele [mailto:rainer.stengele@online.de]=20 Sent: Tuesday, February 02, 2010 12:37 PM To: Brody, William (Buck) Cc: emacs-orgmode@gnu.org Subject: Re: switching to emacs via keboard shortcut Am 02.02.2010 16:52, schrieb Brody, William (Buck): > I run org-mode on GMU Emacs for Windows. During my workflow I am > frequently alt-tab 'ing to get back to Emacs. Does anyone have a way to > use a keyboard shortcut (maybe via an autohotkey script) to get back to > emacs. > > Thanks > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode In an AutoHotkey script I have ; -------------------------------------------------------------------------= ------ ; raise Emacs with "Ctrl-Meta-Shift-e" ^!+e:: if WinExist("ahk_class Emacs") { IfWinActive { WinMinimize } else { WinActivate } } else { Run %SystemDrive%\Programme\Emacs\emacs\bin\emacsclient.exe } return ; -------------------------------------------------------------------------= ------ ; raise Emacs with "Windows + Shift + e" #+e:: if WinExist("ahk_class Emacs") { IfWinActive { WinMinimize } else { WinActivate } } else { Run %SystemDrive%\Programme\Emacs\emacs\bin\emacsclient.exe } return ---------------------------------------------------------------------------= -- I also have ; -------------------------------------------------------------------------= ------ #t:: ; raise Thunderbird with "Windows + Shift + t" IfWinExist, Thunderbird { IfWinActive { WinMinimize } else { WinActivate } } return ; -------------------------------------------------------------------------= ------ #f:: ; Firefox vorholen IfWinExist, Mozilla Firefox { IfWinActive { WinMinimize } else { WinActivate } } return ; -------------------------------------------------------------------------= ------ #p:: raise a specific Putty ; if WinExist("fritz.diplan.de - PuTTY") if WinExist("debian2.diplan.de - PuTTY") { WinActivate } return ; -------------------------------------------------------------------------= ------ ; jump to clocked-in org todo ^!+F12:: ; IfWinExist, Emacs if WinExist("ahk_class Emacs") { WinActivate ; Send ^s Send ^!{F12} } else { Run Notepad } return ; -------------------------------------------------------------------------= ------ ; Org Remember ^!+r:: ; IfWinExist, Emacs if WinExist("ahk_class Emacs") { WinActivate ; Send ^s Send ^!r } else { Run Notepad } return ; -------------------------------------------------------------------------= ------ All this and a lot more scripts and helpers makes Windows really usable ... Rainer