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

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

Re: How to bind M-<kp>-2


From: Julien Cubizolles
Subject: Re: How to bind M-<kp>-2
Date: Mon, 05 Oct 2015 07:05:44 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Random832 <random832@fastmail.com> writes:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
>> I get "M- must prefix a single character, not <kp>-2" when attempting to
>> rebind some smartparens functions in order to avoid conflicts in
>> org-mode.
>
> Try M-<kp-2> 

This did it.

smartparens has its own way of overriding/freeing the key-bindings. Here
is what I did.

--8<---------------cut here---------------start------------->8---
(setq sp-override-key-bindings
      '(("M-<kp-2>" . sp-splice-sexp-killing-forward)
        ("M-<down>" . nil)
        ("M-<kp-8>" . sp-splice-sexp-killing-backward)
        ("M-<up>" . nil)))
--8<---------------cut here---------------end--------------->8---




reply via email to

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