On Wed, 2012-01-25 at 11:59 -0800, Rick Hall wrote: > I tried to set up a development environment for Clojure on a Windows > box. As you all know there are lots of editors available and multiple > ways of setting up each editor. There are also several versions of > instructions as the process has changed over time. > > I have virtually never ventured out of Visual Studio for the past 8 > years. I found the range of options overwhelming, and while I > understand the instructions more clear in retrospect I thought it > might be nice to leave a trail for those who follow behind me. > > I have written a blog post that shows how to install the jdk, > leigingen, emacs, clojure-mode and slime. The level of detail in some > places may seem excessive, but given the amount of time it took me to > comprehend instructions like: from within a project insert M-x clojure- > jack-in, I figured it was better to err on the side of detail. > > For anyone who needs the help, the post is here: > http://onbeyondlambda.blogspot.com/2012/01/setting-up-clojure-emacs-on-windows.html >
I had some trouble getting slime to work on windows. If you are running emacs you can get a lot of functionality with simple keyboard macros. If you split the screen 'Ctrl-x 2' and start a shell buffer 'Meta-x shell' you can run clojure in the shell. You can edit lisp in the other buffer and use 'Ctrl-x o' to switch between the buffers. A simple keyboard macro can be set on a key (e.g. f1) with 'Meta-:' (global-set-key [f1] "\C-x/1\C-[\C-a\C-@\C-[\C-f\C-[w\C-xo\C-y\C-m\C-xo\C-xj1") Pressing the F1 key now will evaluate the s-expression that contains the point. This works by: (remember the position) "\C-x/1" (go to the beginning) "\C-[\C-a" (remember the point) "\C-@" (mark the s-expression) "\C-[\C-f" (push it to the killring) "\C-[w" (switch to other buffer) "\C-xo" (yank the s-expression) "\C-y" (hit enter to eval it) "\C-m" (switch to other buffer) "\C-xo" (go back to position) "\C-xj1" Tim Daly -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en