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: Eric Abrahamsen
Subject: Re: on adding a function call to a s-exp
Date: Tue, 12 Jun 2018 10:07:56 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Óscar Fuentes <ofv@wanadoo.es> writes:

> João Távora <joaotavora@gmail.com> writes:
>
> [...]
>
> It is true that paredit is irritating sometimes, but very convenient
> otherwise.
>
> For the benefit of those who don't know it, let's put a simple example.
> Suppose that you have:
>
> (foo)
> (bar)
>
> but now you wish to wrap those function calls inside a conditional. So
> you write:
>
> (when something
> (foo)
> (bar))
>
> Which requires moving the cursor through several lines just to add a
> parenthesis.
>
> With paredit, you write
>
> (when something_)
> (foo)
> (bar)

I typically write "M-2 (when...", which wraps automatically. Unless I'm
wrapping some huge chunk where it isn't obvious how many sexps should be
wrapped.

Eric




reply via email to

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