Fork me on GitHub
#cider
<
2016-11-01
>
bozhidar12:11:37

I’m guessing you haven’t evaluated the namespace in question or something like that

slipset16:11:38

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.

slipset16:11:59

But as for now, I'm grepping :(

aengelberg18:11:03

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.

dpsutton18:11:54

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

dpsutton18:11:31

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

dpsutton18:11:30

ie, clojure mode, some base lisp mode, something to do with cider, etc

aengelberg18:11:14

@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.

dpsutton18:11:40

ahh, yeah that's annoying

dpsutton18:11:54

is it formatting other people's code and adding useless changes to the diffs?

aengelberg18:11:28

basically, yeah.

aengelberg18:11:48

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. πŸ™‚

dpsutton18:11:21

> reasonable to assume that I meant to defy the convention

dpsutton18:11:28

But weakens the convention πŸ™‚

dpsutton18:11:37

are you super against putting two ;; there?

dpsutton18:11:50

I just can't imagine going against standard indentation with a lisp

aengelberg18:11:54

If I were writing the code from scratch, I would indeed put ;; there πŸ™‚

dpsutton18:11:03

can you do a code cleanup commit?

dpsutton18:11:09

far afield of your question now

dpsutton18:11:12

but i work in C# at work

dpsutton18:11:25

if there was code that didn't follow convention I would bring it inline with convention

dpsutton18:11:38

variable names, private injected dependency named conventions, alignment, etc

dpsutton18:11:52

but that's certainly not part of a solution to your question

aengelberg18:11:55

I could, but people would continue to put commit incorrect formatting.

aengelberg18:11:18

Also, what exactly is the "convention" for a single-semicolon comment on its own line? I still can't find that.

chrisblom18:11:22

i'd also like to know how to format ; as ;;

dpsutton18:11:28

and this will come from conventions from back in the day, i would assume

aengelberg18:11:42

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

aengelberg18:11:51

currently doesn't do that

dpsutton18:11:53

you are correct

aengelberg18:11:31

is there a way to turn off semi-colon auto-indenting entirely? that would probably also solve my problem

dpsutton18:11:07

i've been looking in clojure-mode

dpsutton18:11:26

i see options to adjust macro indentations

dpsutton19:11:27

> 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

dpsutton19:11:49

This may be emacs indenting, and it looks like the indentation is hardcoded into lisp-indent-line

dpsutton19:11:04

ha we discovered the same thing at the same time

chrisblom19:11:14

great minds....

dpsutton19:11:24

well, my great mind was looking on stack overflow πŸ™‚

dpsutton19:11:34

you identified the code and modified it ....