我如何获得粘液 + Emacs设置了吗?
根据这个答案,Emacs + Slime已经拥有很多先进的功能。那么我怎样才能在我的 Lispbox 副本中设置和运行语法着色、自动完成,甚至版本控制管理呢?
如果有任何帮助,我已经在 Mac OS Lion 上安装了 Lispbox。
According to this answer, Emacs + Slime already has much advanced functionality. So how can I get syntax coloring, auto-completion, and perhaps even version control management, set up and running in my copy of Lispbox?
If it's of any help, I have installed Lispbox on Mac OS Lion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你在 Emacs 中加载 lisp 文件时,语法高亮应该已经可以工作了,无论你是否安装了 SLIME。如果不是,请尝试执行
Mx font-lock-mode
并查看是否将其打开。Emacs 或 SLIME 不提供版本控制,但 Emacs 可以与您喜欢使用的几乎任何版本控制系统集成。我推荐 Mercurial 或 Git。当您打开受支持的版本控制系统之一中的文件时,Emacs 应自动启动
vc-mode
。该手册包含大量文档,请执行M-: (info "(emacs)Version Control")
直接跳转到它。自动完成更复杂。给这只猫剥皮的方法不止一种,但对于 Lisp SLIME 来说,默认方法应该足够好了。使用
M-TAB
完成点处的符号。Syntax highlighting should already be working as soon as you load a lisp file in Emacs, regardless of whether you've got SLIME installed or not. If it's not, try doing
M-x font-lock-mode
and see if that turns it on.Version control isn't provided by Emacs or SLIME, but Emacs can integrate with pretty much any version control system you care to use. I recommend Mercurial or Git. Emacs should start
vc-mode
automatically when you open a file that is in one of the supported version control systems. The manual includes extensive documentation, doM-: (info "(emacs)Version Control")
to jump right to it.Auto-completion is more complicated. There is more than one way to skin this cat, but for Lisp SLIME's default method should be good enough. Use
M-TAB
to complete the symbol at point.