![]() |
1
7
这些是我在没有使用elpa的情况下设置它们的步骤。希望这有帮助。 使用MacPorts获取粘液
获取paredit
获取clojure&clojure contrib
sudo port -v install clojure clojure-contrib
curl -O http://build.clojure.org/snapshots/org/clojure/clojure/1.1.0-master-SNAPSHOT/clojure-1.1.0-master-20091202.150145-1.jar curl -O http://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.1.0-master-SNAPSHOT/clojure-contrib-1.1.0-master-20091212.205045-1.jar 获取clojure模式和swank clojure(emacs端)
得到斯旺克·克洛朱尔(克洛朱尔侧)
curl -O http://repo.technomancy.us/swank-clojure-1.1.0.jar
cd path/to/dir/swank-clojure lein jar 将clojure、clojure contrib和swank clojure.jar文件放入~/.swank clojure或~/.clojure(swank-clojure.el搜索它们的默认位置)。 添加到~/.emacs或~/library/preferences/aquamacs emacs/customization.el (更改路径以匹配您自己的设置) (add-to-list 'load-path "/opt/local/share/emacs/site-lisp/slime/") (add-to-list 'load-path "/opt/local/share/emacs/site-lisp/slime/contrib/") ;; Change these paths to match your settings (add-to-list 'load-path "path/to/dir/clojure-mode/") (add-to-list 'load-path "path/to/dir/swank-clojure/") (add-to-list 'load-path "path/to/dir/paredit/") ;; Customize swank-clojure start-up to reflect possible classpath changes ;; M-x ielm `slime-lisp-implementations RET or see `swank-clojure.el' for more info (defadvice slime-read-interactive-args (before add-clojure) (require 'assoc) (aput 'slime-lisp-implementations 'clojure (list (swank-clojure-cmd) :init 'swank-clojure-init))) (require 'slime) (require 'paredit) (require 'clojure-mode) (require 'swank-clojure) (eval-after-load "slime" '(progn ;; "Extra" features (contrib) (slime-setup '(slime-repl slime-banner slime-highlight-edits slime-fuzzy)) (setq ;; Use UTF-8 coding slime-net-coding-system 'utf-8-unix ;; Use fuzzy completion (M-Tab) slime-complete-symbol-function 'slime-fuzzy-complete-symbol) ;; Use parentheses editting mode paredit (defun paredit-mode-enable () (paredit-mode 1)) (add-hook 'slime-mode-hook 'paredit-mode-enable) (add-hook 'slime-repl-mode-hook 'paredit-mode-enable))) ;; By default inputs and results have the same color ;; Customize result color to differentiate them ;; Look for `defface' in `slime-repl.el' if you want to further customize (custom-set-faces '(slime-repl-result-face ((t (:foreground "LightGreen"))))) (eval-after-load "swank-clojure" '(progn ;; Make REPL more friendly to Clojure (ELPA does not include this?) ;; The function is defined in swank-clojure.el but not used?!? (add-hook 'slime-repl-mode-hook 'swank-clojure-slime-repl-modify-syntax t) ;; Add classpath for Incanter (just an example) ;; The preferred way to set classpath is to use swank-clojure-project (add-to-list 'swank-clojure-classpath "path/to/incanter/modules/incanter-app/target/*"))) |
![]() |
2
5
下载并安装aquamacs。 下载并安装ELPA( http://tromey.com/elpa/install.html ) M-X包是否列出包 用“i”标记“clojure mode”和“swank clojure”,然后按“x”。 完成。 |
![]() |
3
5
以下是一篇提到Aquamacs的博客文章: Setting up Clojure, Incanter, Emacs, Slime, Swank, and Paredit |
![]() |
4
1
似乎有一个相当简单的方法来设置aquamacs 2.4和clojure粘液:
这个 不会起作用的 所以…
对我来说似乎没问题… |
![]() |
5
0
我知道OP想用Emacs来开发Clojure。我自己也是Emacs的粉丝,但我发现使用Enclojure( http://www.enclojure.org/home )这是一个很好的快速入门的方法。 |
![]() |
6
0
今天我要去 https://github.com/tehcurtis/aquamacs-emacs-starter-kit/network 这是给鲁比的,一开始不起作用,但无论如何。根据自述文件,git克隆并复制到preferences.el。通过编辑~/library/preferences/aquamacs emacs/并注释掉modes.el中的几乎所有内容(文件中只剩下(setq default indent tabs mode nil)来修复断开问题) 好的方面:您安装了elpa包管理器,而且麻烦少了。 现在:使用
去
完成。 警告:克洛尤尔·杰克不工作,所以你必须
然后按两次回车键和y键开始。 |
![]() |
kaligne · 编辑文件时幻灯片自动完成 10 年前 |