all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jerome Besnard <jerome.besnard+news@M4x.org>
Subject: Re: key binding question
Date: 07 Apr 2003 12:10:36 +0200	[thread overview]
Message-ID: <uvfxqwrc3.fsf@m4x.org> (raw)
In-Reply-To: 6AOja.383118$sf5.707842@rwcrnsc52.ops.asp.att.net

> 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.
-- 
Jerome

  parent reply	other threads:[~2003-04-07 10:10 UTC|newest]

Thread overview: 12+ 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 [this message]
2003-04-08  4:09   ` Kevin Reeder
  -- 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
2007-11-03  1:10 Drew Adams
2007-11-03  1:35 ` Lennart Borgman (gmail)
2007-11-03 14:12 ` Stefan Monnier
2007-11-03 16:34   ` Drew Adams

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

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

  git send-email \
    --in-reply-to=uvfxqwrc3.fsf@m4x.org \
    --to=jerome.besnard+news@m4x.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.
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.