This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-25
Channels
- # beginners (21)
- # boot (37)
- # cljsjs (1)
- # cljsrn (1)
- # clojure (48)
- # clojure-greece (3)
- # clojure-poland (1)
- # clojure-quebec (4)
- # clojure-spec (40)
- # clojure-uk (1)
- # clojurescript (113)
- # cursive (13)
- # events (3)
- # hoplon (183)
- # jobs (5)
- # off-topic (2)
- # onyx (49)
- # planck (35)
- # re-frame (8)
- # reagent (2)
- # sim-testing (1)
- # specter (4)
- # spirituality-ethics (2)
- # untangled (1)
- # vim (2)
- # yada (1)
@zane: See the doc here: https://cursive-ide.com/userguide/formatting.html
There are some other options that are not documented there, in particular Editor->Code Style->Clojure->General->One space list indent.
If you can send an example of something that’s not matching what you want, I can probably help with that.
@kevin: I just investigated this a bit. The problem is that that action conflicts with a standard editor action, “Move to line start/end with selection”. For most toolwindows there’s no conflict because they don’t contain editors, but for the REPL it’s a problem.
cfleming: ah, yeah, that makes sense, kinda figured it was something like that. Stupid IntelliJ and its use of a default single keybinding for multiple, context-specific actions. actually, rebinding the “stretch” actions seems like a pretty decent solution, i’ll give it a go. thanks!
@cfleming: i've checked that 1.2.6-2016.1
has no issue with recognising the Maven project for the Clojure REPL / Remote / Use Leiningen REPL port
, but with the EAP version it's just showing <unknown>
in the list of projects there.
Should I file an issue about this? Do you need an example repository?
btw, i've just noticed the new macro support accidentally and i almost cried from the excitement ;D i see it's even documented! https://cursive-ide.com/userguide/macros.html it's a great practical solution to this fundamental problem!
it has induced a few questions though.
1. why is there no defn
option? i would have immediately use it for the hoplon defelem
which is the most frequently used function definition form in hoplon code
https://github.com/hoplon/hoplon/blob/393e9099d00eeb58c73a39bb4b94ff345b806320/src/hoplon/core.clj#L118
2. where are these resolution and indentation settings stored?
how am i supposed to share them across projects and workstations?
i've tried grep -ri defrpc .idea
in a project but it's not there...
it's neither here: grep -ri defrpc ~/Library/Application\ Support/IntelliJIdea2016.1/
actually defelem
is a bad example because it's defined like a function, but the usage time parameters are pre-processed 😕
(defelem dialog [{:keys [title] :as attrs} kids]
(div :class "dialog" (dissoc attrs :title)
(h1 title)
kids))
(dialog :class "large" :title "Login"
(input :type "text" email)
(input :type "password" pwd))
where the value of attrs
becomes:
{:class "large"
:title "Login"}
and the kids
will be:
[(input :type "text" email)
(input :type "password" pwd)]