Fork me on GitHub
#emacs
<
2016-12-13
>
radon01:12:12

It just occurred to me that paredit doesn’t seem to have a command for swapping two adjacent s-expressions.

radon01:12:17

Am I missing something?

tianshu01:12:16

@radon seems there's a built-in command. C-M-t

radon03:12:51

@doglooksgood: Doesn’t that transpose words rather than s-expressions?

radon03:12:01

It’s from Emacs core rather than paredit.

tianshu03:12:17

it depend on where your cursor is, if you want to transpose sexp, you should place your cursor at the beginning of sexp.

radon03:12:00

Wow, wait. My terminal is dropping the control key!!

radon03:12:36

Nice, thanks!

radon03:12:47

#terminalproblems

tianshu03:12:48

🙂 that will exchange this two lines, but the cursor will move to the end, not very handy.

radon03:12:22

Eh, not really a problem with paredit. I can just C-M-b my way back if need be.