This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-02
Channels
- # announcements (21)
- # babashka (1)
- # beginners (67)
- # calva (18)
- # cider (21)
- # clj-kondo (109)
- # cljs-dev (3)
- # clojure (129)
- # clojure-spec (15)
- # clojure-uk (30)
- # clojurescript (3)
- # datomic (2)
- # graalvm (8)
- # graphql (1)
- # juxt (1)
- # malli (28)
- # off-topic (46)
- # reitit (5)
- # rewrite-clj (33)
- # ring-swagger (2)
- # shadow-cljs (199)
- # vim (9)
Oops! I typed (not (bla bla bla)) then I deleted the word "not", now how do I get rid of the parens?
In Emacs I would position (|( and use M-S which the doc calls Split but in calva Split gives me () ((bla
OH there is a big difference between s and S! In both Emacs and Calva. But I had somehow overlooked it in Emacs. Right-o! Thank you
And split does the right thing, right? You can do that as well, and then backspace, but it is more work than just splicing it.
I gather Calva has both options, but I kept turning my work into porridge. Smart Mode sounded good, but right now the Parinfer page on VS Code Marketplace says "Development is currently paused..." to get the kinks out of Atom
Calva uses the parinfer librarary to provide a “healing” command, where it infers parens from indentation. So you can allow yourself some limited unstructured editing and then press ctrl+alt+p
to “heal” the structure, as long as the indentation is still intact.
I like vscode’s Move line up/down commands. But with the lisp convention of collecting closing brackets at the end of the form, these commands can often break the structure. ctrl+alt+p
to the rescue! But beware, sometimes it can wreck havoc somewhere far away in the code that you don’t notice.
News for Calva-friends: v2.0.56 is out.
* Add setting for wether to open REPL Window on connect or not
* Re-open REPL windows where they were last closed
* Lexer performance considerably improved.
* REPL colours and logo a bit toned down
* Removed useWSL
configuration option because the use of Calva is fully supported through the Remote - WSL extension.