This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-08-12
Channels
- # admin-announcements (3)
- # announcements (1)
- # beginners (9)
- # boot (85)
- # bristol-clojurians (4)
- # cider (12)
- # cljs-dev (3)
- # clojure (91)
- # clojure-berlin (7)
- # clojure-dev (16)
- # clojure-italy (21)
- # clojure-russia (67)
- # clojure-spain (3)
- # clojure-uk (6)
- # clojurescript (139)
- # core-async (41)
- # cursive (7)
- # datomic (61)
- # editors (56)
- # events (16)
- # hoplon (11)
- # jobs (4)
- # ldnclj (14)
- # liberator (7)
- # off-topic (13)
- # om (5)
- # re-frame (22)
- # ring-swagger (27)
@cfleming: I am running my clojure tests with the "test-out" plugin, which generates junit results. In eclipse I can drag the file into the test results view and it will be parsed and displayed, which is quite handy for stuff like that. I wonder if there is a similar feature for intellij.
@sveri: I see - I’m not sure unfortunately. That sounds like useful functionality, for sure.
Is it possible in emacs to have project-specific configurations? I'd love to be able to check some project-specific clj-refactor
magic requires into that project's repo.
heh. I should google first, ask questions later: http://www.emacswiki.org/emacs/ProjectSettings
but when in a clojure file in the project I type "db/" it doesn't auto-require the namespace
Ah, when you were asked for the value, you inserted '(("db" . "com.project.db"))
right?
local values are never evaluated when read (both for dir-local and for file-local), so you don't need to quote them.
I have this now:
((clojure-mode
(cljr-magic-require-namespaces (("db" . "com.project.db")
("log" . "com.project.internal.logging")))))
and it would seem that my other magic-requires in my .emacs.d have stopped working… maybe that's my issue.
It's supposed to look like this I think
((clojure-mode
(cljr-magic-require-namespaces ("db" . "com.project.db")
("log" . "com.project.internal.logging"))))
there's probably something fundamental and silly that I'm missing. I'm still very new to elisp and emacs.
Basically, the cdr
of that thing is the value that will be set. And the cdr
of (cljr-magic-require-namespaces ("db" . "com.project.db") ("log" . "com.project.internal.logging"))
is (("db" . "com.project.db") ("log" . "com.project.internal.logging"))
Another way to write that would be (cljr-magic-require-namespaces . (("db" . "com.project.db") ("log" . "com.project.internal.logging")))
To check if it worked, just visit a clojure file (that wasn't already opened), and do C-h v cljr-magic-require-namespaces
You should see a proper alist (a list where each element is a cons cell of two strings)
Okay, I do see that. It's saying that it's overriding my global value as set in my .emacs.d… is there any way to fix that?
eh, I guess I can just duplicate the ones from my global settings to the .dir-locals.el
…
((clojure-mode
(eval setq cljr-magic-require-namespaces
(append
'(("db" . "com.project.db")
("log" . "com.project.internal.logging"))
cljr-magic-require-namespaces))))
I really need to step back and get my fundamentals right with elisp. I keep trying to hack at it when I have to and tend to treat it more like a configuration language than a proper lisp.