This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-26
Channels
- # announcements (4)
- # beginners (160)
- # boot (2)
- # calva (40)
- # cider (41)
- # clara (24)
- # cljdoc (2)
- # cljs-dev (99)
- # clojars (4)
- # clojure (71)
- # clojure-dev (9)
- # clojure-europe (4)
- # clojure-italy (2)
- # clojure-nl (19)
- # clojure-spec (97)
- # clojure-uk (103)
- # clojurescript (57)
- # core-logic (1)
- # cursive (15)
- # data-science (31)
- # datomic (24)
- # duct (1)
- # emacs (39)
- # events (7)
- # figwheel-main (14)
- # fulcro (44)
- # garden (7)
- # jobs (13)
- # juxt (1)
- # leiningen (29)
- # music (2)
- # nyc (4)
- # off-topic (37)
- # pathom (12)
- # re-frame (26)
- # ring (1)
- # ring-swagger (10)
- # shadow-cljs (35)
- # spacemacs (2)
- # specter (4)
- # test-check (67)
Hi Everyone, I am using cider with figwheel , to start cider i use cider-jack-in-clj&cljs and choose figwheel
Its starts clj cider and then cljs but I see pending-cljs message as it can't connect to cljs cider
@anish.developer maybe better to ask this in #cider. but first you should try to update the piggyback dependency to 0.4.0, see https://github.com/nrepl/piggieback
I have a shortcut C-<tab>
for indenting the toplevel sexp (i.e. defun) that I'm currently in. I noticed today that indent-sexp
seems to want to indent single semicolon comments to the middle of the screen even if they follow some proper code and should not change in formatting. If I change my implementation to mark the region of the containing sexp, that indentation does the right things (i.e. does not move to center of screen)
do you use single semicolons with an explicit purpose? else go for doubles, it's more standard and fewer tools will give you trouble
A single semi-colon is used to put a comment at the end of a line. Double semi-colon is for commenting a line. This is the style guide that Clojure (and I believe lisp) developers use. Clojure-mode formats single semi-colons automatically. If you add a second semi-colon then Clojure-mode should remove that auto-indent (although you may need aggressive-indent-mode for that)
I interpret it differently https://github.com/bbatsov/clojure-style-guide#two-semicolons-for-code-fragment Perhaps what a 'margin' comment is can be debatable. Personally I interpret "margin" comments as multi-line comments that will be aligned. I just never do that: • other editors won't be smart in keeping the alignment • even Emacs will go crazy sometimes and move the comment erratically Not good to have comments moving around in diffs
Conversely ;;
will always be semantically, predictably aligned following the current level of indentation
I just prefer to leave the indentation as defined by the programmer so preserve the indentation the programmer gave
Honestly it's the first time I hear of "column 40" (been emacsing/clojuring since 2012). But I do respect the apparent tradition, e.g. https://stackoverflow.com/a/6365579 looks kind of beautiful.
I very very rarely see comment hierarchies in Clojure code, just ;
and ;;
(maybe with more ;
from Cursivers and more ;;
from Emacsers)
Anyway, I don't seek controversy 🙂
M-;
is a common keybinding in Emacs that will put ;;
if you are on an empty line and ;
at the end of an existing line of text. This has probably shaped the implementation of the coding style for some.
Personally I just use ;;
and try make my code as readable for others as possible and write descriptive doc-strings. Sometimes I use comments, but mostly for separating out sections of a namespace and adding general context (header, sections, etc).
I pretty much try to avoid all comments and prefer to name and explain in code, so there are not many comments and there definitely is not need for the margin style because they are usually also short
if a comment is worth writing for it's either TODO or important to know why so it's worth standing out
most people seem to want to fade them away which nowadays I think is a disservice to them 🙂
I switched recently after using ido for many years. Frustrating at first but I much prefer it now. I really like how editing the input is separate from choosing a candidate in ivy
I love using helm, so much more productive now than using ido
With C-e
right? Or is there another way?
if you mean just be able to edit the suggestion freely with ido on find-file for instance it is with c-x c-f if I recall
Yeah, that’s what I mean – avy doesn’t override any editing commands so you can always edit inline
You can also use M-j
to yank text from where the point was before you started completion
Is there a sane solution for escaping strings in yanked text? An example use is taking some data structure and stringifying it.
@audiolabs I use string-edit
(I hope it is the correct name) from the magnificent Magnars