unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* key binding question
@ 2003-04-06  5:05 Kevin Reeder
  2003-04-06 11:14 ` maierh
  2003-04-07 10:10 ` Jerome Besnard
  0 siblings, 2 replies; 8+ messages in thread
From: Kevin Reeder @ 2003-04-06  5:05 UTC (permalink / raw)


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?

Kevin

^ permalink raw reply	[flat|nested] 8+ messages in thread
* key binding question
@ 2007-02-10 13:00 Hadron
  2007-02-12  4:42 ` Kevin Rodgers
       [not found] ` <mailman.4372.1171255378.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Hadron @ 2007-02-10 13:00 UTC (permalink / raw)
  To: help-gnu-emacs


Is it to add a new key binding to be local to a specific mode by adding
a hook e.g


(add-hook 'html-mode-hook
	  (lambda ()
	    (local-set-key [f10] 'myfunc)))


or to use define-key on the specific mode-map?e.g

(define-key html-mode-map [f11] 'myfunc)

(assume the html-mode-map variable is instantiated/inscope.

Or to ask another way, why would you choose one over the other and what
might the pitfalls be?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-02-13  6:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- 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

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