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

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

Re: on adding a function call to a s-exp


From: Michael Heerdegen
Subject: Re: on adding a function call to a s-exp
Date: Mon, 11 Jun 2018 03:21:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Robert Girault <rfrancoisgirault@gmail.com> 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.

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.


Michael.



reply via email to

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