unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Reeder <avail@uponrequest.org>
Subject: Re: key binding question
Date: Tue, 08 Apr 2003 04:09:44 GMT	[thread overview]
Message-ID: <cYrka.404055$sf5.728878@rwcrnsc52.ops.asp.att.net> (raw)
In-Reply-To: uvfxqwrc3.fsf@m4x.org

On Mon, 07 Apr 2003 03:10:36 -0700, Jerome Besnard wrote:

>> When using the python interpreter within emacs, I'd like to have the
>> up/down arrows echo previous commands. Can anyone give me the code for
>> this?
> 
> The pyhton shell uses comint-mode (for input-output in shell-like
> modes). In comint mode, previous commands are echoed via C-up and
> C-down. But if you really prefer to have these with up/down arrows, you
> should set comint-previous-command and comint-next-command to up/down.
> Something (untested) like:
> (define-key comint-mode-map [up] 'comint-previous-command) (define-key
> comint-mode-map [down] 'comint-next-command)
> 
> should do the trick.

I'll try C-up/down and add make the change to my init file later if
necessary. It's second nature to hit up or down when I'm using the
shell, but adding the C- shouldn't take much getting used to.
Thanks.

Kevin

  reply	other threads:[~2003-04-08  4:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-06  5:05 key binding question Kevin Reeder
2003-04-06 11:14 ` maierh
2003-04-07 10:10 ` Jerome Besnard
2003-04-08  4:09   ` Kevin Reeder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-02-10 13:00 Hadron
2007-02-12  4:42 ` Kevin Rodgers
     [not found] ` <mailman.4372.1171255378.2155.help-gnu-emacs@gnu.org>
2007-02-12  9:11   ` Hadron
2007-02-13  6:36     ` Kevin Rodgers

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='cYrka.404055$sf5.728878@rwcrnsc52.ops.asp.att.net' \
    --to=avail@uponrequest.org \
    /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.
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).