From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: How to change the keyboard mapping? Date: Fri, 12 Aug 2016 17:02:00 -0700 Message-ID: References: <87r39t3afa.fsf@skimble.plus.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1471097495 30987 195.159.176.226 (13 Aug 2016 14:11:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 Aug 2016 14:11:35 +0000 (UTC) Cc: Sharon Kimble To: help-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 13 16:11:30 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 1bYZes-0007uR-L2 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 16:11:30 +0200 Original-Received: from localhost ([::1]:57406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYZep-0002sB-LC for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Aug 2016 10:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMP8-0006CD-UN for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:02:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYMP7-0004IR-Uo for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:02:22 -0400 Original-Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:34576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYMP7-0004I8-Qa for help-gnu-emacs@gnu.org; Fri, 12 Aug 2016 20:02:21 -0400 Original-Received: by mail-qk0-x22a.google.com with SMTP id f123so1417358qkd.1 for ; Fri, 12 Aug 2016 17:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=92Bnx3Ck4D2mCH/LN4BHVRxkB9nBcNMCZ5/yAimgoZM=; b=PkLyo3vKmP2a5dl/sCoYVvDzsmdV+lZawozzJYkEIN0oNyXmH3l0aqMqUfVvhfJtWW vipkwsODrRRPoM3ga0qVDYuBiJMqRlgkni5s3wwixeKzYJDT7vvlRovmiRGE68sqr6x1 /xzLzWZYnNQnNUZQiRZhh10qL2Ved5oaAjze7409yHFiWKSoWAXQGwi3DYM933ujxorE EbE+die3QtBkihYTNw8eR8hkCQ8RfNztK0yOLDcCMn9y0WD7+KkKfg14Qy3Kqg02b/S4 180foFTSZOhwYc0/j6UBoPJVrMlNclnvLHxRXSyKsaaxTLMfbxXni1hKGsDtpmJqhJO/ Baxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=92Bnx3Ck4D2mCH/LN4BHVRxkB9nBcNMCZ5/yAimgoZM=; b=KfzDWkY0Zu07yZLX0P/xMeM6xgR9h5cfQaAqFeKs1cAhoH1TDD/BBl8iQzbL/WU7q/ 8DrqN19c2cHZFKR473ZNwxXGEFBOQfydKP17Mcd0397xqPev1SJVZbenEaoxwf/LGzfE kTq8Tw7nYdY586d8iW6GgSMgImeX0dyWhvjwha1adxcNGtKNHXbHQXeLhA9KsZaIQ6Bo TFaXNzKup4l/JpRHQQrzVHS4EOVij/bqBQl/8x/Ic82S6490tGCT6Ypilsc1bhPVaM8V EYSgd7a2UACD0OTNT+cM5pcwHBtq1Xq/z2RZyWDbDJFjdlJivFUzAcNPiLgHf19z1CdH K2CA== X-Gm-Message-State: AEkoousvDJh7WSzIToiVyt0fOH1BHtEi/KfY9tamQ89uVmb7McWVFULNQO4oqPsj/akWeDoGlC67s6auNBFTew== X-Received: by 10.55.56.129 with SMTP id f123mr21189223qka.30.1471046540766; Fri, 12 Aug 2016 17:02:20 -0700 (PDT) Original-Received: by 10.237.33.46 with HTTP; Fri, 12 Aug 2016 17:02:00 -0700 (PDT) In-Reply-To: <87r39t3afa.fsf@skimble.plus.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22a X-Mailman-Approved-At: Sat, 13 Aug 2016 10:10:18 -0400 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:111130 Archived-At: 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]) John