Fork me on GitHub
#spacemacs
<
2018-12-03
>
dev.4openID15:12:15

Hi all. Newbie using spacemacs. Using smartparens - How do I remove a parens from a double parens? i.e ((let [a b])) should be (let [a b]) . Removing the outer parens - driving me nuts!

practicalli-johnny09:12:46

Hello @dev.4openid I am writing a free online book/guide to Spacemacs for Clojure development, you may find it useful https://practicalli.github.io/spacemacs/ I will be adding more content over the next few weeks

dev.4openID15:12:04

I have seen combo of C-q C-d this does not work

zane15:12:47

@dev.4openid Are you using holy mode?

dev.4openID15:12:06

I am developing clojure so many parens

dev.4openID15:12:32

and am learning spacemacs at the same time

zane15:12:34

@dev.4openid The way I would do that is (assuming the cursor is inside the let): 1. SPC k to enter evil-lisp-state 2. 0 as many times as necessary to place the cursor on the inner ( 3. r to "raise" the inner let 4. (optional) ESC to leave evil-lisp-state

dev.4openID15:12:56

@zane - thanks it worked

🎉 4
👏 4
zane15:12:33

Great! evil-lisp-state is very powerful. Once you get used to it you'll wonder how you ever lived without it. 😉

dev.4openID15:12:49

long learning road ;( but......just keep on going

zane15:12:16

@dev.4openid Learning Spacemacs and Clojure at the same time is very ambitious! Good luck!

dev.4openID15:12:46

read some of the referred doc and (SPC k W unwrap expression) and to (SPC k w wrap expression with parenthesis). Thx for the reference in a looooong doc 😉

zane15:12:41

You're welcome! Yeah, unwrap is another way to do it.

zane15:12:41

Nice thing about unwrap is that you wouldn't need to navigate to the inner (.

PB16:12:17

Quite often I'll accidentally realise a large datastructure in my repl and crash it. Is there an option to set the max eval size or something?

zane17:12:02

@petr You want *print-length* and *print-level*.

🙏 4
matthias22:12:24

Here are some related cider settings I use:

(setq cider-debug-print-length 10
      cider-debug-print-level 10
      cider-repl-print-length 10
      cider-repl-print-level 10
      cider-stacktrace-print-length 10
      cider-stacktrace-print-level 10)

👍 4