From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Cubizolles Newsgroups: gmane.emacs.help Subject: Re: How to bind M--2 Date: Mon, 05 Oct 2015 07:05:44 +0200 Message-ID: <87lhbhhplj.fsf@free.fr> References: <87lhctult6.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444021571 24277 80.91.229.3 (5 Oct 2015 05:06:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 05:06:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Random832 Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 07:06:07 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZixyQ-0000RR-Bu for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 07:06:06 +0200 Original-Received: from localhost ([::1]:44302 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZixyP-0008NH-L9 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 01:06:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZixyF-0008N8-75 for help-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:05:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZixyA-0001Px-8Z for help-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:05:55 -0400 Original-Received: from smtp6-g21.free.fr ([2a01:e0c:1:1599::15]:3972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZixyA-0001Pj-2M for help-gnu-emacs@gnu.org; Mon, 05 Oct 2015 01:05:50 -0400 Original-Received: from touco (unknown [37.162.229.103]) by smtp6-g21.free.fr (Postfix) with ESMTPS id B80888225E; Mon, 5 Oct 2015 06:57:25 +0200 (CEST) In-Reply-To: (Random's message of "Sun, 30 Aug 2015 15:47:31 -0400") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:e0c:1:1599::15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107509 Archived-At: Random832 writes: > Julien Cubizolles writes: > >> I get "M- must prefix a single character, not -2" when attempting to >> rebind some smartparens functions in order to avoid conflicts in >> org-mode. > > Try M- 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-" . sp-splice-sexp-killing-forward) ("M-" . nil) ("M-" . sp-splice-sexp-killing-backward) ("M-" . nil))) --8<---------------cut here---------------end--------------->8---