From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: Is it possible to make M-C-p and M-C-n global aliases for M-down and M-up?
Date: Fri, 26 Feb 2021 18:28:11 +0100 [thread overview]
Message-ID: <86blc6agd0.fsf@dod.no> (raw)
In-Reply-To: <jwvmtwfy594.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 07 Feb 2021 15:50:28 -0500")
>>>>> Stefan Monnier <monnier@iro.umontreal.ca>:
>> On a releated note: is it possible to be able to use C-p for what
>> down does and C-n for what up does, when cycling through 'M-x'
>> commands in the minibuffer?
> Sure, just tweak the bindings in `minibuffer-local-map`. IIRC up/down
> are bound to previous/next-line-or-history-element, so just bind
> C-p/C-n to those.
I've tried this:
(define-key minibuffer-local-map [C-p] 'previous-history-element)
(define-key minibuffer-local-map [C-n] 'next-history-element)
But pressing 'C-p' after doing M-x, still just outputs "Beginning of
buffer" and pressing 'C-n' still just outputs "End of buffer", which was
what I got before doing the define-key settings about.
next prev parent reply other threads:[~2021-02-26 17:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-07 18:07 Is it possible to make M-C-p and M-C-n global aliases for M-down and M-up? Steinar Bang
2021-02-07 18:46 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-07 19:08 ` Steinar Bang
2021-02-07 19:26 ` Stefan Monnier
2021-02-07 20:29 ` Steinar Bang
2021-02-07 20:47 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-07 20:50 ` Stefan Monnier
2021-02-26 17:28 ` Steinar Bang [this message]
2021-02-26 17:49 ` Stefan Monnier
2021-02-26 18:41 ` [External] : " Drew Adams
2021-02-26 20:40 ` Steinar Bang
2021-02-07 18:53 ` Stefan Monnier
2021-02-07 19:06 ` Steinar Bang
2021-02-07 19:27 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-02-07 20:25 ` Steinar Bang
2021-02-07 20:52 ` Stefan Monnier
2021-02-07 21:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86blc6agd0.fsf@dod.no \
--to=sb@dod.no \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).