[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: on adding a function call to a s-exp
From: |
Óscar Fuentes |
Subject: |
Re: on adding a function call to a s-exp |
Date: |
Tue, 12 Jun 2018 19:04:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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)
(the underscore represents the position of the cursor). Now you can
incorporte the function calls inside the `when' with
paredit-forward-slurp-sexp.
Things like this, combined with aggressive-indent-mode, makes editing
Lispy languages quite pleasant, IMHO. In the past I worked like Drew
describes, which is fine, but now I need to worry less about putting the
parens on the right place. Paredit does that for me.
- Re: on adding a function call to a s-exp, (continued)
- Re: on adding a function call to a s-exp, Andreas Röhler, 2018/06/13
- Re: on adding a function call to a s-exp, João Távora, 2018/06/13
- Message not available
- Re: on adding a function call to a s-exp, Emanuel Berg, 2018/06/13
- Re: on adding a function call to a s-exp, João Távora, 2018/06/13
- RE: on adding a function call to a s-exp, Drew Adams, 2018/06/13
- Message not available
- Re: on adding a function call to a s-exp, Emanuel Berg, 2018/06/13
- Re: on adding a function call to a s-exp, João Távora, 2018/06/12
- Re: on adding a function call to a s-exp, Eric Abrahamsen, 2018/06/12
- Re: on adding a function call to a s-exp,
Óscar Fuentes <=
- Re: on adding a function call to a s-exp, Eric Abrahamsen, 2018/06/12
- Re: on adding a function call to a s-exp, João Távora, 2018/06/12
- Re: on adding a function call to a s-exp, Eric Abrahamsen, 2018/06/12
- Re: on adding a function call to a s-exp, João Távora, 2018/06/12
- Message not available
- Re: on adding a function call to a s-exp, Robert Girault, 2018/06/13
- Message not available
- Re: on adding a function call to a s-exp, Robert Girault, 2018/06/13
- Re: on adding a function call to a s-exp, João Távora, 2018/06/13
Message not available