* bind the Ctrl-m key but not bind return
@ 2007-09-19 8:47 Stefan Horomnea
2007-09-20 8:47 ` Stefan Horomnea
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Horomnea @ 2007-09-19 8:47 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I really needed to bind Ctrl-M key to some command, but if I bind it,
i've seen that return is also bind to that command.
So, I did some research and ctrl-m IS return.
I solved this problem in KDE like this:
- that command is bound to Ctrl-`
- I used kcontrolcenter to translate my input of ctlr-m in ctrl-`
And I used this solution for 2 years or so. But now I want to use emacs
over ssh, meaning i won't have X or KDE. And I am very used and pleased
with my Ctrl-m shortcut.
Is there any solution ? Maybe using loadkeys command and .keymap file in
linux ? But how ?
Thank you,
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: bind the Ctrl-m key but not bind return
2007-09-19 8:47 bind the Ctrl-m key but not bind return Stefan Horomnea
@ 2007-09-20 8:47 ` Stefan Horomnea
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Horomnea @ 2007-09-20 8:47 UTC (permalink / raw)
To: help-gnu-emacs
Ok, I got it.
You put something like this in the map file you load with loadkeys:
control keycode 50 = F2
that means ctrl + m will send the F2 key.
and in your .emacs file you put:
(define-key globalmap [(f2)] 'my-command)
So, I use an additional function key (F2) for linking the ctlr+m stuff
to it.
Maybe it could be done more ellegant, that's the solution I've found.
But pay attention: in X (fedora and red had) probably won't work,
because X settings override the keymap file somehow.
But in X you can use xmodmap.
Stefan Horomnea wrote:
> Hello,
>
> I really needed to bind Ctrl-M key to some command, but if I bind it,
> i've seen that return is also bind to that command.
> So, I did some research and ctrl-m IS return.
>
> I solved this problem in KDE like this:
> - that command is bound to Ctrl-`
> - I used kcontrolcenter to translate my input of ctlr-m in ctrl-`
>
> And I used this solution for 2 years or so. But now I want to use
> emacs over ssh, meaning i won't have X or KDE. And I am very used and
> pleased with my Ctrl-m shortcut.
>
> Is there any solution ? Maybe using loadkeys command and .keymap file
> in linux ? But how ?
>
> Thank you,
> Stefan
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-20 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 8:47 bind the Ctrl-m key but not bind return Stefan Horomnea
2007-09-20 8:47 ` Stefan Horomnea
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.