[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: move code from inside a list
From: |
Tassilo Horn |
Subject: |
Re: move code from inside a list |
Date: |
Thu, 07 Jan 2010 15:17:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) |
Andreas Roehler <andreas.roehler@online.de> writes:
Hi Andreas,
> must move some code from inside a list:
>
> (set (make-local-variable 'comment-end " */"))
> ______________________________________|________
>
> i.e. move closing paren to cursor position
>
> ==>
>
> (set (make-local-variable 'comment-end) " */")
>
> `paredit-backward-barf-sexp' seems the command,
> but doesn't work for me.
Nope, the other way round.
,----
| <C-left> runs the command paredit-forward-barf-sexp, which is an interactive
| Lisp function in `paredit.el'.
|
| It is bound to <C-left>, C-}.
|
| (paredit-forward-barf-sexp)
|
| Remove the last S-expression in the current list from that list
| by moving the closing delimiter.
| Automatically reindent the newly barfed S-expression with respect to
| its new enclosing form.
|
| <C-left>
|
| (foo (bar |baz quux) zot)
| ->
| (foo (bar |baz) quux zot)
`----
Bye,
Tassilo