如何设置 Aquamacs 进行 Clojure 开发?
我曾多次尝试迁移到 Emacs 进行 Clojure 开发,遵循各种博客文章、截屏视频和教程,但在此过程中总会出现问题 - 键绑定不起作用、版本不兼容等,我发现自己争先恐后地回到 Vim。但我知道我想要 Paredit 和 SLIME。
因此,我将再次尝试,这次得到了强大的 Stack Overflow™ 社区的支持。
我希望这个问题的答案能够保持最新,并且可以为像我这样的尝试性皈依者提供参考。
我想要的是:
- Clojure Aquamacs 的最新稳定版本
- (如果它对 Rich Hickey 来说足够好,那么对我来说也足够好),最新版本的
- Clojure Mode
- SLIME/SWANK
- Paredit
- 还有其他必不可少的吗?
安装上述内容的分步说明会非常好 - 最好是 shell 脚本格式。我还想要一些关于如何开始使用最常见的 Clojure 相关操作(包括键绑定)的提示,包括文档和备忘单的链接。
I've tried to migrate to Emacs several times for Clojure development, following a variety of blogposts, screencast and tutorials, but somewhere along the way something always went wrong - keybindings that didn't work, incompatible versions, etc, and I found myself scrambling back to Vim. But I know I want Paredit and SLIME.
So, I'm going to try again, this time backed by the powerful Stack Overflow™ community.
I hope that the answer to this question will remain up-to-date, and can serve as a reference for tentative converts like me.
What I'd like is:
- The latest stable release of Clojure
- Aquamacs (if it's good enough for Rich Hickey, it's good enough for me), a recent version
- Clojure Mode
- SLIME/SWANK
- Paredit
- Anything else that's indispensible?
Step-by-step instructions to install the above would be excellent - preferably in shell script format. I'd also like some hints on how to get started with the most common Clojure-related actions (including key-bindings), including links to documentation and cheatsheets.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
这些是我在不使用 ELPA 的情况下设置它们所采取的步骤。希望这有帮助。
使用 MacPorts 获取 SLIME
获取 paredit
获取 clojure & 获取clojure-contrib
获取 clojure-mode 和 swank-clojure (Emacs 端)
获取 swank-clojure (Clojure 端)
把 clojure, clojure ~/.swank-clojure 或 ~/.clojure 中的 -contrib 和 swank-clojure .jar 文件(swank-clojure.el 搜索它们的默认位置)。
添加到 ~/.emacs 或 ~/Library/Preferences/Aquamacs Emacs/customization.el (更改路径以匹配您自己的设置)
These are the steps I took to set them up without using ELPA. Hope this helps.
Get SLIME using MacPorts
Get paredit
Get clojure & clojure-contrib
Get clojure-mode and swank-clojure (Emacs side)
Get swank-clojure (Clojure side)
Put clojure, clojure-contrib and swank-clojure .jar files in ~/.swank-clojure or ~/.clojure (the default places where swank-clojure.el searches for them).
Add to either ~/.emacs or ~/Library/Preferences/Aquamacs Emacs/customization.el (change paths to match your own settings)
下载并安装 Aquamacs。
下载并安装 ELPA (http://tromey.com/elpa/install.html
) Mx package-list-packages
用“I”标记名为“clojure-mode”和“swank-clojure”的行,然后按“X”。
完毕。
Download and install Aquamacs.
Download and install ELPA (http://tromey.com/elpa/install.html)
Do M-x package-list-packages
Mark the lines called "clojure-mode" and "swank-clojure" with "I" then press "X".
Done.
这里有一篇博客文章提到了 Aquamacs:设置 Clojure、Incanter、Emacs、Slime、斯万克和帕雷迪
Here's a blog post that mentions Aquamacs: Setting up Clojure, Incanter, Emacs, Slime, Swank, and Paredit
似乎有一种相当简单的方法可以为 clojure 设置 Aquamacs 2.4 和 SLIME:
这个不会工作所以...
/Library/Application Support/Aquamacs Emacs/SLIME
似乎对我来说工作正常......
There seems to be a fairly easy way to set up Aquamacs 2.4 and SLIME for clojure:
This will not work so...
/Library/Application Support/Aquamacs Emacs/SLIME
Seems to work OK for me...
我知道 OP 想使用 Emacs 进行 Clojure 开发。我自己是 emacs 粉丝,但我发现使用 Enclojure (http://www.enclojure.org/home< /a>) 是快速开始破解 Clojure 的好方法。
I know the OP wants to use Emacs for Clojure dev. I'm an emacs fan myself, but I found using Enclojure (http://www.enclojure.org/home) to be a great way to get started quickly with hacking Clojure.
今天我将前往 https://github.com/tehcurtis/aquamacs-emacs- starter-kit/network
这是用于 ruby 的,一开始不起作用,但无论如何。 git clone 并根据自述文件将内容复制到 Preferences.el 。通过编辑〜/ Library / Preferences / Aquamacs Emacs /并注释掉modes.el中的几乎所有内容来修复损坏(我在文件中只留下了(setq-default indent-tabs-mode nil))
好的部分:你有 现在安装 elpa-package-manager 的麻烦更少了
:使用
go
完成。
警告:clojure-jack-in 不会工作,所以你必须
按两次 Enter 和 y 才能启动。
Today I would head for https://github.com/tehcurtis/aquamacs-emacs-starter-kit/network
this is for ruby and wont work at first but anyway. git clone and copy things to Preferences.el according to readme. Fix the brokenness by edit the ~/Library/Preferences/Aquamacs Emacs/ and comment out almost everything in modes.el (I have only (setq-default indent-tabs-mode nil) left in the file)
The good part: you have installed elpa-package-manager with less hassle
now: use
go to
done.
Caveat: clojure-jack-in wont work so you have to
and press enter twice and y to start.