Fork me on GitHub
#cursive
<
2016-02-08
>
paulspencerwilliams16:02:16

Hey, Cmd-Return is the Cursive keymap default for Execute current statement on Mac, but on my installation, this results in a carriage return as kind of expected. Am I missing something in keymap settings?

arijun16:02:09

have you set it in your keymap, or do you just see it in clojure keybindings?

doddenino17:02:56

Hi! I'm trying follow om-next quick start with cursive and I have a couple of questions: 1) IDEA complains that my files are not under a source root 2) is there a recent guide on how to setup figwheel to work with cursive and om next?

doddenino17:02:58

ok, I've solved 1 😄

doddenino17:02:39

I'm following this https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL for n.2, but idea gives me an error "Error creating JavaParameters"

arijun18:02:54

perhaps #C0B22RS2Y might helpful on that front?

paulspencerwilliams18:02:59

@arijun: I believe so, I copied the default OSX Keybindings to one named Clojure, and then applied Cursive keybinds to that...

paulspencerwilliams18:02:31

The apply isn’t enabled when I set cursive, but is when I set emacs? However, shift cmd f9 wraps with parens so must be working.

arijun18:02:39

If go to keymap, next to the search box there should be a magnifying glass with keys overlayed on it. You can enter your shortcut there and see what is taking it--I would guess it's Split line

paulspencerwilliams18:02:03

@arijun: trying to find keymap. searching for keymap only brings up clojure keybindngs

arijun18:02:05

it's not the parent of Clojure Keybindings?

paulspencerwilliams18:02:39

So I’ve removed the split line keybinding within editor. I’m presuming when I choose cmd+enter, it should execute the line in the repl?

arijun18:02:54

TBH I'm not quite sure what "execute current statement" is supposed to do--it's greyed out as an option for me

paulspencerwilliams18:02:13

other actions are working though simple_smile thanks

arijun18:02:22

I usually use "send top form to REPL"

arijun18:02:09

Oh I figured out what it is--if you're in the REPL inside of a sexp, hitting enter will make a newline, but Execute current statement will always execute it.

paulspencerwilliams18:02:04

@arijun: YES! That’s it. Thank you. I’ve been using cursive for a few months and brain has been the bottleneck rather than keys, and tonight I decided to learn some shortcuts

paulspencerwilliams20:02:51

@arijun: cheers for help, flying along now using that command all the time - didnt know it existed :)

arijun20:02:33

glad to help simple_smile

cfleming20:02:44

@doddenino: That error normally means that you don’t have an SDK configured for your project. Open Project Structure and create one if required, that should fix that problem.

cfleming20:02:44

@paulspencerwilliams: @arijun: That’s right, Execute current statement is only used in the REPL editor. Normally it wouldn’t be shown, but a few people wanted to customise the keybinding for it, which meant making it visible. Sorry for the confusion, I’ll think about a way to make that more obvious.

doddenino22:02:28

@cfleming: thanks, I'll look into that!