Screencast: Clojure development with Sublime Text 2

644 views
Skip to first unread message

James MacAulay

unread,
May 18, 2013, 4:36:21 PM5/18/13
to clo...@googlegroups.com
This is a little show-and-tell I recorded today:


Hopefully it's useful for some of you. Feedback welcome!

Cheers,
James

Jonathan Fischer Friberg

unread,
May 18, 2013, 7:02:59 PM5/18/13
to clo...@googlegroups.com
Nice introduction!

Problems/suggestions for lispindent can be reported here:
https://github.com/odyssomay/sublime-lispindent/issues
don't be shy!

In any case, I went ahead and implemented checking for the
syntax of the file. So non-saved files with clojure syntax is now
indented correctly.

This update is not live yet. It will be soon, but I have recently
done some rather large changes on the plugin (not huge, but
largest since its inception), so I want to do some more testing
before pushing it to everyone. :)

Jonathan (author of lispindent)


--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Glen Mailer

unread,
May 19, 2013, 8:57:15 AM5/19/13
to clo...@googlegroups.com
I've been using sublime-paredit for a while, and the dodgy closing bracket behaviour has been bugging me - so it was nice to spot a fix in your key bindings file.

Would you be able to submit this back upstream to the author?

Cheers
Glen

Jim - FooBar();

unread,
May 19, 2013, 9:40:10 AM5/19/13
to clo...@googlegroups.com
ooo thanks a lot :)

quick question...how did you tell sublime to use lein2 instead of lein ?

Jim

James MacAulay

unread,
May 19, 2013, 12:29:18 PM5/19/13
to clo...@googlegroups.com
Jonathan: thanks, that's great! I'll add a note to the video mentioning that a patch is on the way. Next time I'll submit an issue :)

Glen: yup, I just submitted a pull request yesterday (https://github.com/masondesu/sublime-paredit/pull/6)

Jim: I only have leiningen 2 installed, so that's what I get with the plain old "lein" command. I just added a file called Main.sublime-menu to my ST2 settings gist, which is just taken from the SublimeREPL package:


If you put it in your User package, you can edit the "cmd" option to use whichever REPL command you want.

James MacAulay

unread,
May 19, 2013, 1:14:54 PM5/19/13
to clo...@googlegroups.com
I just noticed a little caveat on my suggestion of copying over Main.sublime-menu and editing it. It'll use the updated settings when you select the Clojure REPL from the menu (Tools > SublimeREPL > Clojure > Clojure), but if you start the REPL from the command palette (cmd-shift-P) then it'll use the original settings file from the package and ignore your edited version.

If you want to be able to use your new settings with keyboard shortcuts or the command palette, I only know of two options:

* edit the SublimeREPL package files in-place (I try to avoid this).
* copy over the whole config/Clojure directory from the SublimeREPL package to the User package, and edit the files so that you have a new lein2 command which is named differently from the existing Clojure commands.

I can't figure out how to customize the existing Clojure REPL commands solely from the User package; copying all the files and leaving them as-is ends up just making duplicates of the commands.

Mark Nutter

unread,
May 21, 2013, 6:42:58 AM5/21/13
to clo...@googlegroups.com
That's helpful for both clj and non-clj work, thanks.

Cygwin Sublime users might be interested in a quick little rc file I wrote to let you use Unix paths with ST2 on the command line:


Just a bit OT, but I thought it might be of use to some ST/Clojure fans.


--
Reply all
Reply to author
Forward
0 new messages