* Return doesn't work any more
@ 2003-05-15 22:41 Karl Voit
2003-05-16 1:21 ` Greg Hill
2003-05-17 0:01 ` Edward O'Connor
0 siblings, 2 replies; 4+ messages in thread
From: Karl Voit @ 2003-05-15 22:41 UTC (permalink / raw)
Hi!
When I add the lines
;;; Ctrl-M for _m_y personal shortcuts (as a test)
(global-unset-key "\C-m")
(global-set-key "\C-ml" 'goto-line)
(global-set-key "\C-mg" 'goto-line)
(global-set-key "\C-mf" 'flyspell-mode)
to my .emacs, there's only 'RET' in the line at the bottom instead of
a simple return in the buffer currently edited.
Why does this affect the return-key and how do I get my custom
shortcuts without harming my enter-key?
TNX
--
Karl VOIT, Graz University of Technology (Austria/Europe)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Return doesn't work any more
2003-05-15 22:41 Return doesn't work any more Karl Voit
@ 2003-05-16 1:21 ` Greg Hill
2003-05-17 0:01 ` Edward O'Connor
1 sibling, 0 replies; 4+ messages in thread
From: Greg Hill @ 2003-05-16 1:21 UTC (permalink / raw)
At 12:41 AM +0200 5/16/03, Karl Voit wrote:
>Hi!
>
>When I add the lines
>
> ;;; Ctrl-M for _m_y personal shortcuts (as a test)
> (global-unset-key "\C-m")
> (global-set-key "\C-ml" 'goto-line)
> (global-set-key "\C-mg" 'goto-line)
> (global-set-key "\C-mf" 'flyspell-mode)
>
>to my .emacs, there's only 'RET' in the line at the bottom instead of
>a simple return in the buffer currently edited.
>
>Why does this affect the return-key and how do I get my custom
>shortcuts without harming my enter-key?
That's because in the ASCII character set \C-m (a.k.a. "control M")
is the code for "carriage return." Depending on your platform, you
_may_ be able to get your Emacs session to distinguish between typing
the RETURN key and typing the M key while holding down the control
key. But don't count on it. You can save yourself a lot of time and
grief by just getting used to the idea that \C-m and RET are the same
thing, and never trying to use \C-m as anything else. (By the way,
\C-i is the ASCII code for TAB, so you may as well resign yourself to
that as well.)
--Greg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Return doesn't work any more
2003-05-15 22:41 Return doesn't work any more Karl Voit
2003-05-16 1:21 ` Greg Hill
@ 2003-05-17 0:01 ` Edward O'Connor
2003-05-17 15:40 ` Karl Voit
1 sibling, 1 reply; 4+ messages in thread
From: Edward O'Connor @ 2003-05-17 0:01 UTC (permalink / raw)
> ;;; Ctrl-M for _m_y personal shortcuts (as a test)
> (global-unset-key "\C-m")
> (global-set-key "\C-ml" 'goto-line)
> (global-set-key "\C-mg" 'goto-line)
> (global-set-key "\C-mf" 'flyspell-mode)
FYI, sequences of the form C-c <letter> are reserved for the user (you),
so it doesn't make much sense to use C-m here.
--
Edward O'Connor
oconnor@soe.ucsd.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Return doesn't work any more
2003-05-17 0:01 ` Edward O'Connor
@ 2003-05-17 15:40 ` Karl Voit
0 siblings, 0 replies; 4+ messages in thread
From: Karl Voit @ 2003-05-17 15:40 UTC (permalink / raw)
* Edward O'Connor <oconnor@soe.ucsd.edu> wrote:
>
> FYI, sequences of the form C-c <letter> are reserved for the user (you),
> so it doesn't make much sense to use C-m here.
Thank you! Didn't know that. Works great that way ;-)
--
Karl VOIT, Graz University of Technology (Austria/Europe)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-05-17 15:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 22:41 Return doesn't work any more Karl Voit
2003-05-16 1:21 ` Greg Hill
2003-05-17 0:01 ` Edward O'Connor
2003-05-17 15:40 ` Karl Voit
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).