From: bvraghav@iitk.ac.in (B.V. Raghav)
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: help-emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to change the keyboard mapping?
Date: Sat, 13 Aug 2016 19:46:45 +0530 [thread overview]
Message-ID: <87mvkg21pu.fsf@ram.bvr.dp.lan> (raw)
In-Reply-To: <87r39t3afa.fsf@skimble.plus.com> (Sharon Kimble's message of "Fri, 12 Aug 2016 23:11:05 +0100")
Hi,
> How can I map my alpha-ENTER to be the same as my numerical-ENTER please?
I checked for the keycode using xev in my terminal
The two enter keys produce this line in their respective output:
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
state 0x0, keycode 104 (keysym 0xff8d, KP_Enter), same_screen YES,
`C-h k <kp-enter>' provides the key binding in current mode. Then I run
`M-: (local-set-key (kbd "<kp-enter>") (lambda () (interactive) (message
"KP Enter pressed")))' and press <kp-enter>. It works.
So I think there are two ways I should proceed
1. Explicitly map <kp-enter> to the same command as <return> in the
particular mode I am talking about.
2. Or, use Xmodmap to simulate a return globally. I should append into
the .Xmodmap file, and invoke it in the .xinitrc
keycode 104 = Return
For more details on xmodmap, `M-x man RET xmodmap RET', and
https://wiki.archlinux.org/index.php/xmodmap
There should be more elegant ways to do the job, but this is FWIW.
HTH
r
--
(B.V. Raghav)
Ph.D. Student,
Design Programme, IIT Kanpur
Ph: +91-9450988137
Email: bvraghav@gmail.com
next prev parent reply other threads:[~2016-08-13 14:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-12 22:11 How to change the keyboard mapping? Sharon Kimble
2016-08-13 0:02 ` John Mastro
2016-08-13 0:35 ` Sharon Kimble
2016-08-13 2:10 ` John Mastro
2016-08-14 12:28 ` Robert Thorpe
2016-08-15 12:59 ` Sharon Kimble
2016-08-15 12:59 ` Sharon Kimble
2016-08-15 17:37 ` John Mastro
2016-08-13 14:16 ` B.V. Raghav [this message]
2016-08-15 13:01 ` Sharon Kimble
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=87mvkg21pu.fsf@ram.bvr.dp.lan \
--to=bvraghav@iitk.ac.in \
--cc=boudiccas@skimble.plus.com \
--cc=help-gnu-emacs@gnu.org \
/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.