From: "Brody, William (Buck)" <BrodyW11@darden.virginia.edu>
To: Rainer Stengele <rainer.stengele@online.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: RE: switching to emacs via keboard shortcut
Date: Tue, 2 Feb 2010 14:15:08 -0500 [thread overview]
Message-ID: <46FF04F1BA077D4586212E7E31C57D2A01DB36FF25@MAIL.darden.virginia.edu> (raw)
In-Reply-To: <4B6862BF.2050101@online.de>
Thanks. These are great and work like a charm.
-----Original Message-----
From: Rainer Stengele [mailto:rainer.stengele@online.de]
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
next prev parent reply other threads:[~2010-02-02 19:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-02 15:52 switching to emacs via keboard shortcut Brody, William (Buck)
2010-02-02 17:37 ` Rainer Stengele
2010-02-02 19:15 ` Brody, William (Buck) [this message]
2010-02-02 17:54 ` Tom
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46FF04F1BA077D4586212E7E31C57D2A01DB36FF25@MAIL.darden.virginia.edu \
--to=brodyw11@darden.virginia.edu \
--cc=emacs-orgmode@gnu.org \
--cc=rainer.stengele@online.de \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.