This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-11
Channels
- # aleph (38)
- # announcements (6)
- # aws (1)
- # beginners (47)
- # calva (21)
- # cider (47)
- # cljs-dev (18)
- # clojure (40)
- # clojure-europe (7)
- # clojure-india (2)
- # clojure-italy (9)
- # clojure-nl (11)
- # clojure-norway (2)
- # clojure-sanfrancisco (1)
- # clojure-spec (17)
- # clojure-sweden (2)
- # clojure-uk (73)
- # clojurescript (10)
- # cursive (6)
- # datascript (12)
- # datavis (2)
- # defnpodcast (1)
- # duct (5)
- # emacs (36)
- # figwheel (2)
- # figwheel-main (10)
- # juxt (12)
- # leiningen (1)
- # midje (1)
- # nrepl (9)
- # off-topic (25)
- # pedestal (3)
- # portkey (3)
- # quil (2)
- # re-frame (45)
- # reagent (1)
- # ring (3)
- # ring-swagger (36)
- # rum (1)
- # shadow-cljs (48)
- # spacemacs (1)
- # speculative (50)
- # testing (2)
- # tools-deps (27)
- # yada (4)
@enn Depends on your use-case. If you just want a listing of files probably that’d be better. 🙂 Nested projects are always tricky to get right, as different people have different ideas how they should behave.
Yes, indeed. I think you could make strong arguments for either behavior (including everything in the repo, or including only the innermost project)
Yeah, probably I should make it configurable, so people can select one of those options.
> Is there a way to tell projectile to consider an entire git repo one project, no matter how many profile.clj
s are present?
how desirable is this though? giantic projects don't seem efficient to handle (to either a human or a computer)
when facing these monorepos, I just consider its N projects separately. So I open the N projects and switch between them as I work.
Very rarely I have to do a global grep or such
cc @enn (just giving out an idea)
@vemv i've got a .projectile
at the top-level of our monorepo, that seems to be working ok for ag
ing across the whole project - that .projectile
contains the exclusions for ag
ing across the whole monorepo, so that you don't get 000s of results from js build products etc
@vemv it's pretty common for me to want to work on the model, api and client for a feature and search which can span all modules is quite useful
fair enough! One also can open "N + 1"... each subproject, plus the monorepo itself things like the directory tree become neater with these subproject views
oh, right - i never use a directory tree - i tend to just helm across all the files in the repo
Is there a way to configure how single semicolons indent in clojure-mode
?
Or even a more basic question, what specifically is handling indentation given i'm in a cljs file, with clojure-mode on, using spacemacs? It's hard for me to figure out what program is controlling what sometimes. Which is usually a blessing as everything just works.
Just to make sure: you know that single semicolons are supposed to be used only for end-of-line comments, right?
I understand that.
Well, i understand thats a common style.
I think i'll be happier finding a way to customize ;
, than the alternatives.
I’ve seen people using single semicolons instead of doubles and that does sometimes mess up indentation
Thanks. i understand the convention its employing and knowing that, still want to change it. If that's not possible, thats good to know, if it is, i'm trying to figure out how.
I understand its not a bug and it working as the creator intended. I'm just asking if its configurable basically.
i want single semicolons to behave as double do now.
------------------------ ; <- dont push to middle
;;
with - as whitespace
I have to tell you: - probably not a good idea. I’m not entirely sure how to convince you but single semicolons at the line ending with multiple lines kinda align nicely
I understand its asking a lot. But would you be able to provide some direction as to how i'm supposed to use that function? Based on [this stack overflow question](https://stackoverflow.com/questions/26312317/wrong-indentation-of-comments-in-emacs) i tried this:
(defun dotspacemacs/user-config ()
(defun foo () (setq comment-indent-function (lambda () 10)))
(add-hook 'clojure-mode-hook 'foo))
and it doesn't change the indenting. Any quick guidance you can give would be great.If I remember it right comment-indent-function by default points to default-indent-function. You need to fork it
I’m back… sorry I was wrong, the function you need to fork is this:
(defun comment-indent-default ()
"Default for `comment-indent-function'."
(if (and (looking-at "\\s<\\s<\\(\\s<\\)?")
(or (match-end 1) (/= (current-column) (current-indentation))))
0
(when (or (/= (current-column) (current-indentation))
(and (> comment-add 0) (looking-at "\\s<\\(\\S<\\|\\'\\)")))
comment-column)))
Thanks, ill give this a try.