all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: bvraghav@iitk.ac.in (B.V. Raghav)
Cc: help-emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to change the keyboard mapping?
Date: Mon, 15 Aug 2016 14:01:13 +0100	[thread overview]
Message-ID: <87d1laqj8m.fsf@skimble.plus.com> (raw)
In-Reply-To: <87mvkg21pu.fsf@ram.bvr.dp.lan> (B. V. Raghav's message of "Sat,  13 Aug 2016 19:46:45 +0530")

[-- Attachment #1: Type: text/plain, Size: 1357 bytes --]

bvraghav@iitk.ac.in (B.V. Raghav) writes:

> 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.
>

Thanks for this fulsome reply BV. Its now all working perfectly.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

      reply	other threads:[~2016-08-15 13:01 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
2016-08-15 13:01   ` Sharon Kimble [this message]

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=87d1laqj8m.fsf@skimble.plus.com \
    --to=boudiccas@skimble.plus.com \
    --cc=bvraghav@iitk.ac.in \
    --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.