all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: Random832 <random832@fastmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to bind M-<kp>-2
Date: Mon, 05 Oct 2015 07:05:44 +0200	[thread overview]
Message-ID: <87lhbhhplj.fsf@free.fr> (raw)
In-Reply-To: <m27foc7e3w.fsf@fastmail.com> (Random's message of "Sun, 30 Aug 2015 15:47:31 -0400")

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	other threads:[~2015-10-05  5:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lhbhhplj.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=random832@fastmail.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.