保存时自动进行字节编译
每次我以 emacs lisp 模式保存文件时,我都希望它能自动进行字节编译。如果当前的主要模式是 emacs lisp 模式,有人可以想出一个对当前文件进行字节编译文件的函数吗?我想将该函数add-hook
添加到after-save-hook
。
Everytime I save a file in emacs lisp mode, I want it to be automatically byte-compiled. Can someone come up with a function that does byte-compile-file
on the current file if the current major mode is emacs lisp mode? I want to add-hook
that function to after-save-hook
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在此处找到了答案。下面就完成了这一切。这是链接网站的副本。
I found an answer here. The following does it all. It is a copy from the linked site.