help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to make M-C-p and M-C-n global aliases for M-down and


From: Emanuel Berg
Subject: Re: Is it possible to make M-C-p and M-C-n global aliases for M-down and M-up?
Date: Sun, 07 Feb 2021 20:27:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier wrote:

>> Is it possible to make M-C-n a global alias for M-down, and
>> to make M-C-p a global alias for M-up?
>>
>> I.e. make them aliases across modes?
>
> You could try something like
>
>     (define-key input-decode-map [?\C-\M-n] [M-down])
>     (define-key input-decode-map [?\C-\M-p] [M-up])

Well, then you move the problem from C-M-n to M-down... but
sure, if there is no problem with M-down, then there is
no problem.

But let me ask, what is the right way to do, e.g., I want M-i
`scroll-up-1' everywhere?

  https://dataswamp.org/~incal/emacs-init/scroll.el

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]