From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Girault Newsgroups: gmane.emacs.help Subject: Re: on adding a function call to a s-exp Date: Mon, 11 Jun 2018 11:35:12 -0300 Organization: Aioe.org NNTP Server Message-ID: <86wov55r33.fsf@gmail.com> References: <864libzkem.fsf@gmail.com> <86zi026stt.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528729165 9602 195.159.176.226 (11 Jun 2018 14:59:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 14:59:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 16:59:21 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSOHw-0002Mh-2V for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2018 16:59:20 +0200 Original-Received: from localhost ([::1]:49378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSOK3-0006Ao-C5 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2018 11:01:31 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: NrZMOD7qEokViZTvijMvWg.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Cancel-Lock: sha1:F0VDHH1wBM5rBU7RU4kPEyMjeVw= X-Notice: Filtered by postfilter v. 0.8.3 Original-Xref: usenet.stanford.edu gnu.emacs.help:222980 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:117101 Archived-At: Michael Heerdegen writes: > Robert Girault writes: > >> (show-paren-mode) >> (electric-pair-mode) >> (autoload 'enable-paredit-mode "paredit" >> "Turn on pseudo-structural editing of Lisp code." >> t) >> (add-hook 'M-mode-hook 'enable-paredit-mode) > > I don't know what M-mode is, but in elisp-lisp-mode and with paredit, > it's like you want. If you use paredit for Emacs Lisp, you probably > also don't need electric-pair-mode. I confirm this. (Thanks!) > Without paredit-mode, AFAICT what you get when you hit M-( is > `insert-pair' via `insert-parentheses', and that has hardcoded what you > see. You would have to change `insert-pair' to get what you want - with > an advice probably. Alternatively, as said, paredit should behave as > you want without configuration. I'll choose to use paredit and learn how to use it properly. (There'll likely be other good things there that I don't currently know or use.)