From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Org-mode on Windows - Putty Date: Sat, 19 Apr 2008 01:50:27 +0530 Message-ID: References: <3d6808890803140507l7fcfe50u7735399d908c2b09@mail.gmail.com> <721383.11791.qm@web28309.mail.ukl.yahoo.com> <47DA98DF.3020208@gmail.com> <47DAD302.9090302@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jmx4V-0006EC-O3 for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 16:20:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jmx4S-0006CQ-1x for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 16:20:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jmx4R-0006CJ-RF for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 16:20:31 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jmx4R-00013G-56 for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 16:20:31 -0400 Received: by ti-out-0910.google.com with SMTP id a20so113906tia.10 for ; Fri, 18 Apr 2008 13:20:27 -0700 (PDT) In-Reply-To: <47DAD302.9090302@gmail.com> Content-Disposition: inline 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: Wanrong Lin Cc: org-mode mailing list 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- to C-c 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 "") 'org-columns-next-allowed-value) | (global-set-key (kbd "") 'org-columns-previous-allowed-value) `---- I don't like very much in comparison with native port. But it works! Thank you, -- Manish