This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-24
Channels
- # aleph (3)
- # beginners (17)
- # boot (8)
- # cider (61)
- # cljdoc (13)
- # cljs-dev (2)
- # clojure (66)
- # clojure-boston (1)
- # clojure-italy (4)
- # clojure-nl (7)
- # clojure-russia (7)
- # clojure-spec (19)
- # clojure-uk (80)
- # clojurescript (73)
- # core-async (4)
- # cursive (6)
- # data-science (1)
- # datomic (33)
- # docs (13)
- # emacs (17)
- # figwheel-main (28)
- # fulcro (12)
- # graphql (1)
- # jobs (3)
- # leiningen (4)
- # luminus (1)
- # off-topic (1)
- # parinfer (1)
- # pedestal (46)
- # protorepl (3)
- # re-frame (30)
- # reagent (47)
- # reitit (10)
- # ring (1)
- # shadow-cljs (94)
- # spacemacs (12)
- # specter (16)
- # tools-deps (6)
- # uncomplicate (1)
- # vim (9)
Also, there’s M-x cider-repl-history, there’s some additional customizations you can do to persist the repl history to file too, although not sure how it works if you have multiple repls open
So I’m really struggling with how to wrangle the parens , mostly when going back in and having to add code, writing brand new code is no problem. I’m not sure what to do
@joshua.d.horwitz @joshua.d.horwitz (?) are you using some flavor of structural editing? It's pretty much the only way to do it -- I almost ever only insert/copy/delete at the sexp level, ensuring that parens stay matched at all time. Happy to help you get started with that if you're not already.
@joshua.d.horwitz the deliciously sounding slurp and barf are your friends along with other structural editing tools (as Egg mentioned. There is a secion on Lisp mode in the Spacemacs ABC screencasts that should give you a good start. Go to 10 mins 35 seconds in this video https://www.youtube.com/watch?v=fYsqaAL8HSU&list=PLrJ2YN5y27KLhd3yNs2dR8_inqtEiEweE&index=5
There is also a keybinding guilde for lisp mode https://github.com/syl20bnr/spacemacs/blob/master/doc/DOCUMENTATION.org#editing-lisp-code
I started working on structural editing in my book, but this section needs a bit of work. A quick glimpse through this section will hopefully give you some ideas https://practicalli.github.io/spacemacs/structured-editing/
Thanks all!
I’ll check that out now
i also had a vim-fu meta kind of question. is that preferred in the vim channel? it's not necessarily about clojure in vim either so i can go to the vim irc or something. basically there is a long, repetitive function in the brave book at: https://www.braveclojure.com/do-things/#The_Shire_s_Next_Top_Model What kind of vim commands would you use to make writing that function out a lot less painful. (obviously i could copy paste but i'm looking for general vim improvement and see many clojure functions that are kind of like this.
There is a #vim channel as well
right now i just yanked the map of {:name "head" :size 3} and pasted it 18 more times and am manually going to each line, changing the word in quotes using cw, changing the size number using r, going to the next line, hitting enter to move the next copy pasted line to the next line, leaving insert mode to go to the next word in quotes, and repeating the whole thing. how would you do it instead?