all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tiagohenriques@lycos.co.uk (Tiago Henriques)
Subject: Re: return and enter keys in emacs 21.3 on MacOSX 10.2
Date: 17 Jan 2003 07:19:59 -0800	[thread overview]
Message-ID: <c7f46aea.0301170719.76a0a461@posting.google.com> (raw)
In-Reply-To: c7f46aea.0301170352.1d2a7d50@posting.google.com

> It seems that the return key is unassigned. How can I assign it to run
> the command newline, similarly to the keypad-enter key?

I added the following line to my .emacs file:

(global-set-key [return] 'newline)

and now I can use the main keyboard's <return> key as normal when
typing in a standard buffer. However, when I use the mini-buffer (e.g.
when visiting a file with C-x C-f) it doesn't seem to work, while both
C-m amd <keypad enter> do work.

It seems that instead of assigning the command "newline" to the return
key I need to translate <return> to RET, as emacs is apparently
already doing with <keypad enter>:

C-h c <keypad enter>:
RET (translated from <kp-enter>) runs the comand newline

How can I do this translation?

  reply	other threads:[~2003-01-17 15:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 17:41 return and enter keys in emacs 21.3 on MacOSX 10.2 Tiago Henriques
2003-01-16 20:02 ` Kai Großjohann
2003-01-17 11:52   ` Tiago Henriques
2003-01-17 15:19     ` Tiago Henriques [this message]
2003-01-17 15:45     ` Benjamin Riefenstahl
2003-01-19 22:12       ` Tiago Henriques

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=c7f46aea.0301170719.76a0a461@posting.google.com \
    --to=tiagohenriques@lycos.co.uk \
    /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.