我是Emacs的新手,最近我安装了nXhtml扩展。我如何编译这个扩展?
发布于 2011-09-17 01:25:01
假设:您已经使用bzr branch lp:nxhtml从launchpad上的bazaar存储库安装了xhtml。
现在答案是: README.txt文件刚刚告诉我们
Note 3: You may optionally also byte compile nXhtml from the nXhtml
menu (recommended).将(load "~/.emacs.d/nxhtml/autostart.el")添加到您的.emacs中,然后添加M-x eval-buffer,激活模式,当您的菜单中有nXhtml条目时,只需浏览nXhtml → nXhtml Help and Setup → Byte compile nXhtml即可。
就是这样!
发布于 2011-02-24 01:12:50
通常,您不必编译emacs扩展。您通常会包含以下内容
(load "YOUR-PATH-TO/nxhtml/autostart")添加到你的.emacs中。
然而,如果你真的想编译你的文件,你可以使用函数byte-compile-file (通过M-x byte-compile-file)来编译。
https://stackoverflow.com/questions/5094030
复制相似问题