Fork me on GitHub
#calva
<
2023-01-02
>
popeye07:01:44

what is the shortcut key to move one function inside the another function without copying , saw such things in intellj

() (+ 1 3)   => ((+ 1 3))   ;; Here I am just writing what I wanted, not evaluating it

pez09:01:57

There are two ways to do this, depending on where the cursor is. If it is within the empty parens you can slurp forward. If your cursor is outside (but ”touching”) the (+ 1 3) expression, you can drag backward down. Check the command palette or the keyboard shortcuts editor for the bindings.

popeye09:01:28

oh yeah, that worked, what is drag backward down? which keys in linux ?

pez11:01:16

Check https://calva.io/paredit/for an animated guide to these operations.

👀 2
Quentin Le Guennec10:01:21

Hello, I am migrating from cider to calva. In cider, I was used to have multiple emacs windows connected to the same repl. In calva, when I open a new window, then navigate to my project workspace, I see “Repl: disconnected”, because the calva process seems bound to the vscode window. Can I get around that issue?

pez11:01:01

You can create multiple VS Code workspaces and add the same folder to each.

Quentin Le Guennec11:01:00

oh yeah that works, thank you