This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-01
Channels
- # aleph (1)
- # bangalore-clj (5)
- # beginners (24)
- # boot (113)
- # cider (42)
- # cljs-dev (2)
- # cljsjs (2)
- # cljsrn (3)
- # clojure (37)
- # clojure-austin (4)
- # clojure-brasil (3)
- # clojure-france (55)
- # clojure-greece (15)
- # clojure-ireland (4)
- # clojure-italy (13)
- # clojure-russia (37)
- # clojure-spec (50)
- # clojure-uk (31)
- # clojurescript (49)
- # component (12)
- # consulting (1)
- # cursive (6)
- # datascript (9)
- # datomic (27)
- # editors (2)
- # garden (1)
- # hoplon (18)
- # jobs (1)
- # klipse (25)
- # lein-figwheel (1)
- # leiningen (1)
- # luminus (2)
- # om (53)
- # om-next (8)
- # onyx (5)
- # parinfer (4)
- # perun (4)
- # re-frame (13)
- # remote-jobs (1)
- # ring (1)
- # ring-swagger (3)
- # rum (52)
- # spacemacs (36)
- # specter (13)
- # sql (3)
- # untangled (49)
- # vim (11)
- # yada (9)
Iโm guessing you havenโt evaluated the namespace in question or something like that
Yes, but more worriesome is that there's something wrong with my project, since this works flawlessly on a fresh project created with lein figwheel new whatever.
How can I change ;
indenting behavior to be similar to ;;
? I never want to indent way over to the right when I have a ; comment
on its own line.
is there a reason you want to defy the convention that ;
is indented to the right and ;;
stays at the left? I think this is a standard lisp convention
I can search through the code base tonight to find out how it does the indenting, although i'm not sure which mode will do this
@dpsutton I personally don't intend to defy the convention, but at work I'm dealing with code written in different IDEs that don't necessarily support the same conventions.
basically, yeah.
Also I don't really get why this is the default behavior:
(defn f
; abc
def)
If I put ; abc
on its own line, I think it's reasonable to assume that I meant to defy the convention and indent that as the same level as def
. Or at least, reasonable enough that I should be able to customize some setting to do that. ๐If I were writing the code from scratch, I would indeed put ;;
there ๐
if there was code that didn't follow convention I would bring it inline with convention
I could, but people would continue to put commit incorrect formatting.
Also, what exactly is the "convention" for a single-semicolon comment on its own line? I still can't find that.
if clojure-mode really followed the single-semicolon convention, shouldn't it re-indent inline comments too?
(form) ; inline comment
[TAB]
should produce
(form) ; inline comment
currently doesn't do that
is there a way to turn off semi-colon auto-indenting entirely? that would probably also solve my problem
http://stackoverflow.com/questions/14190488/set-comments-at-the-same-indentation-level-as-all-forms
> I don't think that you would want to do that. It would make your code indent differently from all other elisp code... Anyway, this is hardcoded into lisp-indent-line, so you would have to modify it (perhaps using defadvice). โ Lindydancer Jan 7 '13 at 9:29