Try Clojure
21–30 of 63 posts
Re: Try Clojure
#22Earlier quoted context omitted.
I'm about to try that (in the middle of trying another thing at the moment), and this isn't to you in particular, but as a general complaint, why do I have to have a project.clj file to get a nice repl in emacs?
if you have slime installed, you should just be able to "M-x slime" to open a clojure REPL. At least that's how it works in my emacs.
Here's what I had to do: - Download the lein script and put it in my PATH
- Download package.el and put it in my .emacs load-path
- lein self-install
- make a project directory, and 'lein new projname .' inside it
- modify the resulting project.clj to add :dev-dependencies [[leiningen/lein-swank "1.1.0"] [swank-clojure "1.2.1"]]
- lein deps in said directory
- Install package.el, and then install slime, clojure-mode, slime-repl, and swank-clojure with it (and fight with it and get confused about why it didn't know about slime-repl until I installed it several times but then noticed it when I restarted Aquamacs)
- lein swank in said directory
- M-x slime-connect from Aquamacs
Am I doin it rong?
Re: Try Clojure
#23Nicely done. Would be nice to support copy/paste into the editor. Get rid of the dark grey background on code snippets in the tutorial -- very difficult to read. Having REPL inline with the tutorial is great...wish someone would build something similar for Haskell.
http://tryhaskell.org/
Re: Try Clojure
#24Earlier quoted context omitted.
if you have slime installed, you should just be able to "M-x slime" to open a clojure REPL. At least that's how it works in my emacs.
Heh. If you have a procedure that's that simple, please blog about it. Here's what I had to do: - Download the lein script and put it in my PATH - Download package.el and put it in my .emacs load-path - lein self-install - make a project directory, and 'lein new projname .' inside it - modify the resulting project.clj to add :dev-dependencies [[leiningen/lein-swank "1.1.0"] [swank-clojure "1.2.1"]] - lein deps in sai…
2. Ran "M-x package-list-packages"
3. Installed clojure-mode, slime, slime-repl, and swank-clojure.
Then I rebooted emacs and "M-x slime" just works for me (aquamacs).
Re: Try Clojure
#25Re: Try Clojure
#26Earlier quoted context omitted.
Heh. If you have a procedure that's that simple, please blog about it. Here's what I had to do: - Download the lein script and put it in my PATH - Download package.el and put it in my .emacs load-path - lein self-install - make a project directory, and 'lein new projname .' inside it - modify the resulting project.clj to add :dev-dependencies [[leiningen/lein-swank "1.1.0"] [swank-clojure "1.2.1"]] - lein deps in sai…
1. I installed ELPA from here: http://tromey.com/elpa/install.html 2. Ran "M-x package-list-packages" 3. Installed clojure-mode, slime, slime-repl, and swank-clojure. Then I rebooted emacs and "M-x slime" just works for me (aquamacs).
Re: Try Clojure
#27Re: Try Clojure
#28Re: Try Clojure
#29Nicely done. Would be nice to support copy/paste into the editor. Get rid of the dark grey background on code snippets in the tutorial -- very difficult to read. Having REPL inline with the tutorial is great...wish someone would build something similar for Haskell.
Re: Try Clojure
#30Is anyone embedding Bespin for idea's similar to this?