Fork me on GitHub
#cider
<
2016-08-12
>
hkjels08:08:05

How do I eval code in an org-mode document in my clojurescript-REPL instead of clojure-REPL

shaun-mahood15:08:58

I'm thinking of diving back into the emacs/cider pool - any opinions on the best getting started guide or bundle for CLJS development?

radon15:08:47

@shaun-mahood: To minimize your pain with setting up a project.clj correctly, you may want to try https://github.com/raxod502/minimal-webapp. It should work completely out-of-the-box (see the README).

radon15:08:56

(Disclaimer: I’m the author.)

shaun-mahood15:08:49

@radon: Oh that looks great - I will definitely use that as a reference once I get emacs set up. It looks like you are running the REPLs from terminal - does it still work nicely if running the REPLs from cider?

shaun-mahood15:08:06

Oh wow I have no idea how I missed that 🙂

shaun-mahood15:08:25

Any opinions on getting Emacs going? The 3 guides I know of are the one from Brave Clojure, Prelude, and Emacs Live - last time I got emacs working for clojure development was a couple years ago and I want to get started from scratch again with something simple for a non-emacs user.

radon15:08:06

Hmmm… well, obviously I am biased toward my own setup: https://github.com/raxod502/dotfiles/blob/master/init.el

radon15:08:47

It’s extremely well documented, so it probably wouldn’t be too hard to pick out the parts that are relevant to you.

radon15:08:00

I use https://emacsformacosx.com/ but this obviously only works if you are on a Mac.

radon15:08:54

I’ve heard good things about Spacemacs but never tried it. It does change a lot of default functionality, though.

radon15:08:33

I actually started out with https://github.com/RallySoftware/rally-emacs, but it was kind of decrepit and bloated, so I basically reimplemented the best parts from scratch, hence https://github.com/raxod502/dotfiles.

radon15:08:56

For getting started with basics, C-h t for the tutorial is nice.

shaun-mahood15:08:22

Going to be putting it on a mac to start, then replacing the config on my windows machine once I get it working nicely. Pretty much will only be used for Clojure.

radon15:08:38

Well, I do have a setup script https://github.com/raxod502/dotfiles/blob/master/scripts/setup.sh for Macs, but I haven’t gotten to making it modular (i.e. you can just install Emacs dotfiles) yet.

shaun-mahood15:08:32

Thanks, I'll take a look at those as I'm figuring all this out.

richiardiandrea15:08:14

@shaun-mahood: if you are keen on premade packages and modular things, Emacs Live is good. There are submodules for all the dependency so that you can decide (manually) the commit you want to be at

richiardiandrea15:08:37

I found this an interesting way of staying out of melpa breaking updates

richiardiandrea15:08:29

The downside is that I have to maintain my own fork, but I got used to it now

shaun-mahood15:08:11

@richardiandrea: Thanks, I really like the idea of avoiding breaking updates - what have you had to do as far as maintaining your own fork?

richiardiandrea16:08:18

if you want I can make it a proper master branch and you can fork from mine, I have upgraded most of the packages to latest stable

richiardiandrea16:08:19

together with this Emacs Live provides a way to specify custom packages, which I keep in another repo so that from time to time I can PR to Emacs Live something

richiardiandrea16:08:09

but the above is more of a "custom" packaging

shaun-mahood16:08:05

@richiardiandrea: Don't do any extra work on my account, I'm still investigating options - I find emacs pretty daunting still and am not sure exactly how deep I want to go down the rabbit hole.

richiardiandrea16:08:54

ahah no problem, I actually had in mind at some point of coming out with an Emacs Live "official" fork...but Sam Aaron is still doing a pretty good job at keeping it updated

richiardiandrea16:08:11

as many people may have told you, once you get used to all the shortcuts, you won't go back to "normal" editors 😄

shaun-mahood16:08:20

Last time I was using emacs I had to buy a new keyboard to prevent carpal tunnel, I've since built an ergodox with the idea that I can customize it specifically for emacs and clojure shortcuts 🙂

radon16:08:47

You could also try something like evil-mode or ergoemacs.

radon16:08:11

I don’t have any experience with them, though.