* How to bind M-<kp>-2
@ 2015-08-30 10:12 Julien Cubizolles
2015-08-30 19:47 ` Random832
0 siblings, 1 reply; 3+ messages in thread
From: Julien Cubizolles @ 2015-08-30 10:12 UTC (permalink / raw)
To: help-gnu-emacs
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.
I tried:
--8<---------------cut here---------------start------------->8---
(setq sp-override-key-bindings
'(("M-<kp>-2" . sp-splice-sexp-killing-forward)
("M-<kp>-8" . sp-splice-sexp-killing-backward)))
(sp--update-override-key-bindings)
--8<---------------cut here---------------end--------------->8---
Julien.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to bind M-<kp>-2
2015-08-30 10:12 How to bind M-<kp>-2 Julien Cubizolles
@ 2015-08-30 19:47 ` Random832
2015-10-05 5:05 ` Julien Cubizolles
0 siblings, 1 reply; 3+ messages in thread
From: Random832 @ 2015-08-30 19:47 UTC (permalink / raw)
To: help-gnu-emacs
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> or <M-kp-2>.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to bind M-<kp>-2
2015-08-30 19:47 ` Random832
@ 2015-10-05 5:05 ` Julien Cubizolles
0 siblings, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2015-10-05 5:05 UTC (permalink / raw)
To: Random832; +Cc: help-gnu-emacs
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---
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-05 5:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-30 10:12 How to bind M-<kp>-2 Julien Cubizolles
2015-08-30 19:47 ` Random832
2015-10-05 5:05 ` Julien Cubizolles
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).