[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Org-mode on Windows - Putty
From: |
Manish |
Subject: |
Re: [Orgmode] Org-mode on Windows - Putty |
Date: |
Sat, 19 Apr 2008 01:50:27 +0530 |
Wanrong> > > What I did is:
Wanrong> > > Add some alternative TTY key bindings for some
frequently used
Wanrong> commands,
Wanrong> > > and use "AutoHotkey" to map things like "M-RET" to
those TTY key
Wanrong> > > bindings. Not ideal, but works fine.
Manish> > If I understand you correctly, what you are suggesting is to use
Manish> > alternative key binds as suggested by Giovanni and use
AutoHotKey to
Manish> > `translate' S-<left> to C-c <left> for example. Hmm.
Not a bad idea
Manish> > at all. Should work.
Manish> > Can you please share relevant pieces from your .emacs
and AHK script?
Wanrong> #IfWinActive ahk_class PuTTY
Wanrong> ;; this is the killer
Wanrong> RAlt::LAlt
Wanrong> PgDn::Send ^v
Wanrong> PgUp::Send !v
Wanrong> Home::Send ^a
Wanrong> End::Send ^e
Wanrong> Delete::Send ^d
Wanrong> ^Home::Send !<
Wanrong> ^End::Send !>
Wanrong> ^Space::Send ^c{Space} ;; to avoid Chinese input ZiGuan
to intercept the
Wanrong> Ctrl-SPC
Wanrong> ;; modified arrow and return keys
Wanrong> ^Up::Send ^c{Up}
Wanrong> ^Down::Send ^c{Down}
Wanrong> ^Right::Send ^c{Right}
Wanrong> ^Left::Send ^c{Left}
Wanrong> ^Return::Send ^c{Return}
Wanrong> !Up::Send ^x{Up}
Wanrong> !Down::Send ^x{Down}
Wanrong> !Right::Send ^x{Right}
Wanrong> !Left::Send ^x{Left}
Wanrong> +!Return::Send ^x{Return}
Wanrong> ;; mark and selection commands
Wanrong> +Home::Send ^x{Space}^a
Wanrong> +End::Send ^x{Space}^e
Wanrong> +PgDn::Send ^x{Space}^v
Wanrong> +PgUp::Send ^x{Space}!v
Wanrong> !+Home::Send ^x{Space}!<
Wanrong> !+End::Send ^x{Space}!>
Wanrong> ^+Home::Send ^x{Space}^a
Wanrong> ^+End::Send ^x{Space}^e
What's working for me now is following AHK setup:
,----[ AHK keys ]----
| #IfWinActive lappy
| +Left::Send,^c{Left}
| +Right::Send,^c{Right}
| +Up::Send,^c{Up}
| +Down::Send,^c{Down}
| !+Left::Send,^c^x{L}
| +!Right::Send,^c^x{R}
`----
along with these two key-bindings in .emacs:
,----[ .emacs ]----
| (global-set-key (kbd "<f6>") 'org-columns-next-allowed-value)
| (global-set-key (kbd "<f7>") 'org-columns-previous-allowed-value)
`----
I don't like very much in comparison with native port. But it works!
Thank you,
-- Manish
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Orgmode] Org-mode on Windows - Putty,
Manish <=