Running Clojure with 'lein swank' on Aquam

2019-01-18 16:44发布

I installed leiningen and ran lein swank,

  1. sudo lein deps
  2. lein swank

Aquamacs has everything about SLIME, so it's OK.

Solution to this problem

David helped me to be out of trouble. As Aquamacs has built-in SLIME, I didn't need anything complex about the setup. I just needed one line - (slime-setup '(slime-repl)).

3条回答
萌系小妹纸
2楼-- · 2019-01-18 17:32

I had the same problem if I used (slime-setup '(slime-fancy)). Changing it to (slime-setup '(slime-repl)) fixed it.

查看更多
劳资没心,怎么记你
3楼-- · 2019-01-18 17:37

I found this the easiest setup for the latest version of everything. Here's a quick summary where I"m assuming you have leiningen installed.

Install the swank-clojure plugin

$ lein plugin install swank-clojure 1.3.2

Create your clojure project

$ lein new test-project
$ cd test-project
$ lein deps

Then open one of the clojure files from your project in emacs and run clojure-jack-in

M-x clojure-jack-in

You are now in a slime buffer with clojure and the dependencies for your project loaded.

查看更多
姐就是有狂的资本
4楼-- · 2019-01-18 17:37

I found that I needed this in my .emacs to get it to work:

(eval-after-load "slime"
  '(progn
     (slime-setup '(slime-fancy slime-asdf))))
查看更多
登录 后发表回答