From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: How to change the keyboard mapping? Date: Sat, 13 Aug 2016 01:35:51 +0100 Message-ID: <87lh011p5k.fsf@skimble.plus.com> References: <87r39t3afa.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1471048601 23502 195.159.176.226 (13 Aug 2016 00:36:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 00:36:41 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-emacs To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 02:36:37 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYMwG-0005rO-Kt for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 02:36:36 +0200 Original-Received: from localhost ([::1]:55409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMwC-0002Iz-Ne for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Aug 2016 20:36:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMvl-0002Ii-5r for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:36:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYMvg-0002JG-Up for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:36:04 -0400 Original-Received: from avasout02.plus.net ([212.159.14.17]:58000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMvg-0002J9-OU for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:36:00 -0400 Original-Received: from london.london ([87.112.70.196]) by avasout02 with smtp id WQbw1t0024E58WF01Qbx3h; Sat, 13 Aug 2016 01:35:57 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.2 cv=U6jQNqju c=1 sm=1 tr=0 a=45Ejj8pQQ4//QSzY3X71wA==:117 a=45Ejj8pQQ4//QSzY3X71wA==:17 a=pGLkceISAAAA:8 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=iI7HsYTVAAAA:8 a=avqe7KHtKwZbcTTvYXUA:9 a=JeOPscT3qjwMpHD7:21 a=NULOCVk_Tf3dgxE8:21 a=6e3UQyshzdzXxTFsZxEA:9 a=ONNS8QRKHyMA:10 a=6kGIvZw6iX1k4Y-7sg4_:22 a=yJM6EZoI5SlJf8ks9Ge_:22 a=diwpeB1DDhFXqWA7J4Up:22 a=KxyM1Xthmv57RbWRIpnN:22 X-AUTH: skimble@:2500 In-Reply-To: (John Mastro's message of "Fri, 12 Aug 2016 17:02:00 -0700") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.17 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111128 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable John Mastro writes: > Sharon Kimble wrote: >> How can I map my alpha-ENTER to be the same as my numerical-ENTER please? >> >> I'm using a 'standard usb keyboard' (that's what it says on the >> underside anyway) and I'm finding that when using emacs as normal I can >> only accept entries on my dropdown word-prompt (I type in 3-4 letters >> and it pops up a list of possible solutions) using the numerical-ENTER. >> Also if it shows a possible one-word solution for auto-complete by the >> grey letters to finish the word, I can only accept using the >> numerical-ENTER key again. > > What package are you using for completion (i.e. the thing offering > candidates via the dropdown)? I suspect the best solution will involve > adding something to that package's mode map rather than remapping the > key at a lower level in Emacs. > > If it's auto-complete, try this: > > (with-eval-after-load 'auto-complete > (define-key ac-completing-map [return] #'ac-complete)) > > I don't have a keyboard with that key handy to test it, so I'm not sure > it will help. The reason for the suggestion is that I noticed that > auto-complete only binds `ac-complete' to "\r" (aka RET), whereas > company binds both that and [return]. [return] is normally translated to > RET, but it's possible for them to have different bindings. > > Out of curiosity I tried something like the below (which was my first > thought for how to translate the "normal" enter key to the one on the > numeric keypad) but the result is not good. > > (define-key key-translation-map (kbd "RET") [kp-enter]) > Thanks John. The programme is 'flyspell-popup'. When I say 'alpha-ENTER' I mean the enter key immediately next to the alphabetical section of the keyboard, and the 'numerical-ENTER' key is immediately next to the numerical section of the keyboard. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXrmtnAAoJEDaBgBkK+INbSRkQALifLrRa9nAWcm/Jt7yOJiRG bY+Q9TyD/eAJ/cnXRhi7M4ja5spNCkMkBSCKTpe3Km2wTdVwToGOEyj+NXTfCBCi ke9HVJN1bijhiemr4UiWUOpMl76Oy+lhTCZPVLkU6k/aO36HXCQI70YxAYMMdDTC PBcVtrIZa5KOnRmzO/VUCud1ift8crh6LXxgneN1x9O0x4K/g9CIBopaSWDxG+vY xI3PFz99OkXrOIOrw8UFTzZMVyIMg4vzAZfHKjpkD32oRC2Y2nVD1td7ZXl1MgNT N6ytKfVoFt4CD7jWKw0RPKJ3/1l6cVAJWmqjP0iY5sCcpjfkp8j/0UsO7VKBF023 cgfDMr+hZ1mV2CmxePZkrHjn8x4E/dWwhXP5zQuzSZ5H58nbFx8vN2F5rNiqYRRO Qu/A5+OGjjMfCYHdinK7sfySaB5po8daZfcPnVLHSFeb+xR6ftspl7VhfNvYCHe/ 2iHbidzeH0YUuq5fM/gDy4S/7PnaOU4sbXyJ6rH1KRMAJ/pRrNht5AdHXVnRf69O CjB+q4SYdF4dRk8ZyUOczIyfXvLroMXd85DWVCfZKSI/ACxPHLbOS9LeC467J/b7 aLyKl/4MjkaPp9eziQUOnYYJJogpuZGWd8Hs0rpkJqVVbhv16sNCbp9UVD8MALVK YNd38AoaHtbeao/DFW2F =oSDv -----END PGP SIGNATURE----- --=-=-=--