Fork me on GitHub
#protorepl
<
2016-12-10
>
martinklepsch06:12:28

So Jason's talk at the conj encouraged me once again to try atom. And nearly everything is great but indentation for Clojure code is just a mess. Like this is the result of auto-indenting a region:

(ns com.martinklepsch.inliner
  (:require [net.cgrand.enlive-html :as enl]
    [ :as io]
    [boot.core :as boot]
    [boot.util :as util]))
How do you deal with this? AFAIK Atom's indentation stuff is based on regexes and just breaks for anything lisp-y so it always seemed a bit hard to solve but I guess people using Atom have a solution in one way or the other?

martinklepsch08:12:47

@fellshard ok so if I see right that basically says use lisp-paredit:indent?

martinklepsch08:12:54

hah, and indeed that's the solution! thanks!

puzzler19:12:08

Any way to get the tree view of data in the REPL pane?

puzzler20:12:08

Is there a keystroke to change the REPL's namespace to match whatever file is being edited?

puzzler20:12:34

Is there a way to swap the roles of enter and shift-enter in the REPL?

puzzler20:12:47

It appears that the ProtoREPL is being launched with a classpath that isn't seeing all the files in my src directory. How can I further diagnose this?

puzzler21:12:43

@lspector Have you tried leaving parinfer in paren mode?

seancorfield21:12:09

Per my comment above, I used Proto REPL exclusively as my editor on Thursday / Friday. On Thursday I reverted to Emacs for Git (I love magit!) but on Friday I decided to avoid Emacs entirely and use SourceTree for Git instead. Overall, those two days went very well and I think I’m sold on Proto REPL at this point.

jasongilman23:12:21

@seancorfield: that's great to hear!

seancorfield23:12:00

I’m looking forward to your Sayid integration 🙂

jasongilman23:12:00

@puzzler no to viewing tree view data in the REPL pane. That would be cool though.

jasongilman23:12:03

@puzzler: keystrokes are all completely customizable in Atom. The keybinding inspector can help show what's being called. The atom documentation is pretty good at describing how it all works.

jasongilman23:12:44

@puzzler: that's odd about the classpath. My hunch is that its starting leiningen without using your project.clj. Are you using Lein? Does it see some of your files or none of them?

jasongilman23:12:53

Note you can start the REPL without any leiningen file and it will load a default project. If it can't find a project file it will use the default. The REPL will print out which one its using.

jasongilman23:12:44

Also I recommend trying out features and seeing how the demo project is setup. It expects you're using clojure.tools.namespace for example to load all of your code. It's not required but works best with it.

jasongilman23:12:21

Also for the best experience I recommend sending code from a file to the REPL instead of typing in the REPL itself.