emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Manish <mailtomanish.sharma@gmail.com>
To: Wanrong Lin <wanrong.lin@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Org-mode on Windows - Putty
Date: Sat, 19 Apr 2008 01:50:27 +0530	[thread overview]
Message-ID: <e7cdbe30804181320g1fdd6662h7ab987d3c82f78be@mail.gmail.com> (raw)
In-Reply-To: <47DAD302.9090302@gmail.com>

      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

  reply	other threads:[~2008-04-18 20:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 10:58 Org-mode on Windows Manish
2008-03-14 12:07 ` Tim O'Callaghan
2008-03-14 12:29   ` Org-mode on Windows - Putty Giovanni Ridolfi
2008-03-14 13:27     ` Manish
2008-03-14 15:25       ` Wanrong Lin
2008-03-14 15:29         ` Carsten Dominik
2008-03-14 19:03         ` Manish
2008-03-14 19:33           ` Wanrong Lin
2008-04-18 20:20             ` Manish [this message]
2008-03-14 15:43   ` Org-mode on Windows Russell Adams
2008-03-14 19:13     ` Manish

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e7cdbe30804181320g1fdd6662h7ab987d3c82f78be@mail.gmail.com \
    --to=mailtomanish.sharma@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wanrong.lin@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).