Note that there are some explanatory texts on larger screens.

plurals
  1. POEmacs (Cocoa Emacs) vs Aquamacs for running Clojure on Mac OS X
    primarykey
    data
    text
    <p>I used <a href="http://aquamacs.org/" rel="nofollow noreferrer">Aquamacs</a> so far, and I need to install and run <a href="http://en.wikipedia.org/wiki/Clojure" rel="nofollow noreferrer">Clojure</a> using <a href="http://en.wikipedia.org/wiki/SLIME" rel="nofollow noreferrer">SLIME</a>. I googled to get some way to use Clojure on SLIME of Aquamacs, but without success. </p> <h1>Questions</h1> <ol> <li>Is it possible to install Clojure on Aquamacs? Or, can you guess why Clojure on Aquamacs doesn't work?</li> <li>Is it normal that Emacs and Aquamacs can't share the same <a href="http://tromey.com/elpa/" rel="nofollow noreferrer">ELPA</a>?</li> <li>Is it possible to use ELPA to install Conjure on Emacs/Aquamacs?</li> <li>I was told that one can use 'lein swank' to run as a server, do you know how to do that?</li> </ol> <h1>Sequences that I tried (and half succeeded)</h1> <p>I tried with <a href="http://emacsformacosx.com/" rel="nofollow noreferrer">Mac OS X Emacs</a>, and by following the steps I could make it work. I mean, I could run Clojure with SLIME. </p> <h2>Emacs for Mac OS X</h2> <p>Step 1) Install <a href="http://github.com/technomancy/emacs-starter-kit" rel="nofollow noreferrer">ESK</a>.</p> <ul> <li>Git clone and copy all the files into the <code>.emacs.d</code> directory</li> <li>Add the following code to <code>.emacs</code> and relaunch</li> </ul> <pre> (when (load (expand-file-name "~/.emacs.d/package.el")) (package-initialize)) </pre> <p>Step2) Install using ELPA </p> <ul> <li>M-x package-list-packages to select packages</li> <li>Install <ul> <li>clojure-mode, clojure-test-mode</li> <li>slime, slime-repl</li> <li>swank-clojure</li> </ul></li> <li>M-x slime to install the clojure</li> <li>Add the following code to <code>.emacs</code> and relaunch</li> </ul> <pre> ;; clojure mode (add-to-list 'load-path "/Users/smcho/.emacs.d/elpa/clojure-mode-1.7.1") (require 'clojure-mode-autoloads) (add-to-list 'load-path "/Users/smcho/.emacs.d/elpa/clojure-test-mode-1.4") (require 'clojure-test-mode-autoloads) ;; slime ;(setq inferior-lisp-program "/Users/smcho/bin/clojure") (add-to-list 'load-path "/Users/smcho/.emacs.d/elpa/slime-20100404") (require 'slime-autoloads) (add-to-list 'load-path "/Users/smcho/.emacs.d/elpa/slime-repl-20100404") (require 'slime-repl-autoloads) ;; swank-clojure (add-to-list 'load-path "/Users/smcho/.emacs.d/elpa/swank-clojure-1.1.0") (require 'slime-repl-autoloads) </pre> <h2>Aquamacs</h2> <p>Now I could use Clojure on Emacs, I tried the same(or very similar) method to run Clojure on Aquamacs once more.</p> <p>Step 1) Install <a href="http://github.com/walter/aquamacs-emacs-starter-kit" rel="nofollow noreferrer">ESK for Aquamacs</a></p> <ul> <li>Copy the files to ~/Library/Preference/Aquamacs Emacs</li> <li>Modify "~/Library/Preferences/Aquamacs Emacs/Preferences.el" to add the following</li> </ul> <pre> (setq kitfiles-dir (concat (file-name-directory (or (buffer-file-name) load-file-name)) "/aquamacs-emacs-starter-kit")) ; set up our various directories to load (add-to-list 'load-path kitfiles-dir) (require 'init) </pre> <p>Step2) * Follow the same step as before to install all the (same) packages, but "M-x slime" gives me the following error message. "Symbol's function definition is void: define-slime-contrib"</p> <h2>ELPA</h2> <p>I tried to combine the packages from Emacs and Aquamacs, but they don't combine. I thought I could use the <a href="http://tromey.com/elpa/" rel="nofollow noreferrer">ELPA</a> itself, not from the ESK to make it shared. </p> <p>The result was not good, as ELPA couldn't download the swank-conjure package. </p> <h2>Success - Running Aquamacs/Clojure with 'lein swank'.</h2> <p>Please refer to <a href="https://stackoverflow.com/questions/3343555/running-clojure-with-lein-swank-on-aquamacs-problem">this</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload