Fork me on GitHub
#cursive
<
2016-06-25
>
cfleming02:06:38

There are some other options that are not documented there, in particular Editor-&gt;Code Style-&gt;Clojure-&gt;General-&gt;One space list indent.

cfleming02:06:54

If you can send an example of something that’s not matching what you want, I can probably help with that.

zane03:06:22

Great. Thanks, @cfleming!

cfleming03:06:27

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

cfleming03:06:39

I don’t have a good solution sorry, I’ll have to think about it.

cfleming03:06:56

You could rebind the stretch left/right actions to another key, of course.

kevin12:06:46

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!

onetom13:06:58

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

onetom13:06:03

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!

onetom14:06:57

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/

onetom14:06:57

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)]

onetom14:06:32

i wouldn't want the call site to be underlined because of arity error, but i also don't want to see title, attrs and kids marked as unresolvable within the definition of dialog