* switching to emacs via keboard shortcut
@ 2010-02-02 15:52 Brody, William (Buck)
2010-02-02 17:37 ` Rainer Stengele
2010-02-02 17:54 ` Tom
0 siblings, 2 replies; 4+ messages in thread
From: Brody, William (Buck) @ 2010-02-02 15:52 UTC (permalink / raw)
To: emacs-orgmode@gnu.org
[-- Attachment #1.1: Type: text/plain, Size: 229 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1937 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: switching to emacs via keboard shortcut
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)
2010-02-02 17:54 ` Tom
1 sibling, 1 reply; 4+ messages in thread
From: Rainer Stengele @ 2010-02-02 17:37 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: switching to emacs via keboard shortcut
2010-02-02 17:37 ` Rainer Stengele
@ 2010-02-02 19:15 ` Brody, William (Buck)
0 siblings, 0 replies; 4+ messages in thread
From: Brody, William (Buck) @ 2010-02-02 19:15 UTC (permalink / raw)
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]
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: switching to emacs via keboard shortcut
2010-02-02 15:52 switching to emacs via keboard shortcut Brody, William (Buck)
2010-02-02 17:37 ` Rainer Stengele
@ 2010-02-02 17:54 ` Tom
1 sibling, 0 replies; 4+ messages in thread
From: Tom @ 2010-02-02 17:54 UTC (permalink / raw)
To: emacs-orgmode
Brody, William (Buck <BrodyW11 <at> darden.virginia.edu> writes:
>
> 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.
I use this:
CapsLock::
SetCapsLockState, off
winactivate ahk_class Emacs
sendinput {f12}
return
Pressing capslock (which is a useless key, imo) puts me into Agenda from
anywhere. Note that I bound F12 in Emacs to get to the Agenda and the above
script relies on that.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-02 19:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
2010-02-02 17:54 ` Tom
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.