From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: switching to emacs via keboard shortcut Date: Tue, 02 Feb 2010 18:37:03 +0100 Message-ID: <4B6862BF.2050101@online.de> References: <46FF04F1BA077D4586212E7E31C57D2A01DB36F5F4@MAIL.darden.virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcMev-0003Bx-5j for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:35:29 -0500 Received: from [199.232.76.173] (port=59830 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcMeu-0003BW-Oy for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:35:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcMer-0006Ow-SH for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:35:28 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:53967) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcMep-0006OM-DQ for emacs-orgmode@gnu.org; Tue, 02 Feb 2010 12:35:23 -0500 In-Reply-To: <46FF04F1BA077D4586212E7E31C57D2A01DB36F5F4@MAIL.darden.virginia.edu> 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: "Brody, William (Buck)" Cc: "emacs-orgmode@gnu.org" 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