help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: numeric keypad return


From: Tassilo Horn
Subject: Re: numeric keypad return
Date: Fri, 14 Nov 2008 13:12:38 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

kodifik@eurogaran.com writes:

> Sorry if this has been answered 10000000 times before, but I do not
> find it in documentation, nor googling around.  The question is: Can I
> assign the num. key "intro" independently from the normal return key?

You mean "enter", not "intro", right?

Looking at

,----[ C-h k RET ]
| RET (translated from <kp-enter>) runs the command newline, which is an
| interactive compiled Lisp function in `simple.el'.
| 
| It is bound to RET.
| 
| (newline &optional arg)
| 
| Insert a newline, and move to left margin of the new line if it's
| blank.  If `use-hard-newlines' is non-nil, the newline is marked with
| the text-property `hard'.
| With arg, insert that many newlines.
| Call `auto-fill-function' if the current column number is greater than
| the value of `fill-column' and arg is nil.
`----

I can see that the key <kb-enter> currently translates to RET, but emacs
seems to distinguish.  So you can define it separately:

  (define-key 'some-key-map (kbd "<kp-enter) 'some-command)

Bye,
Tassilo
-- 
[Emacs] is written in Lisp, which is the only computer language that is
beautiful.  -- Neal Stephenson, _In the Beginning was the Command Line_





reply via email to

[Prev in Thread] Current Thread [Next in Thread]