Changes between Version 49 and Version 50 of Clojure Client Tutorial
- Timestamp:
- Aug 8, 2011 3:15:58 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v49 v50 10 10 If you're having trouble with leiningen, type "lein help" in the shell to see available commands (you can configure leiningen individually for each project, however, so these will differ depending on which directory you are in). Leiningen supports integration with emacs via the swank/slime mechanism, and if you're bent on using this, you can read up on it here [[http://dev.clojure.org/display/doc/Getting+Started]] (I strongly recommend that you don't attempt this unless you're a emacs expert, as you will likely have to tweak emacs quite a bit to get it working; a simpler solution is to use gvim with the vimclojure script: this provides syntax highlighting and indentation and works out of the box). 11 11 12 Once you have the script in a directory of your choice, add the following to your .cshrc file 13 14 "setenv PATH "$PATH":"/path/to/leiningen/sript". 12 Once you have the script in a directory of your choice, add the following to your .cshrc file (assuming you are using the c shell; else lookup specific instructions for your shell) 13 14 {{{ 15 setenv PATH "$PATH":"/path/to/leiningen/sript 16 }}} 15 17 16 18 You could skip this step but it will less convenient later on for debugging. 17 19 18 At this point I recommend reading "Joy of Clojure", by Michael Fogus and Chris Houser. This is an excellent introduction to clojure if you are already familiar with lisp or scheme. Much of the inspiration for this client comes from this book so if you're having trouble figuring out what is going on, this will provide most of the background you will need. If you're short on time or funds, just search for online tutorials, there are plenty out there. If you need to quickly look up the documentation on any particular function, just type "(doc f)" in the REPL where f is the function(This will also work for functions that you define provided that you wrote docstrings or added meta-data).20 At this point I recommend reading "Joy of Clojure", by Michael Fogus and Chris Houser. This is an excellent introduction to clojure if you are already familiar with lisp or scheme. Much of the inspiration for this client comes from this book so if you're having trouble figuring out what is going on, this will provide most of the background you will need. If you're short on time or funds, just search for online tutorials, there are plenty out there. If you need to quickly look up the documentation on any particular function, just type "(doc <function name>)" in the REPL (This will also work for functions that you define provided that you wrote docstrings or added meta-data). 19 21 20 22 Lisp and Scheme resources: