我正在尝试使用此代码按照本教程设置emacs作为我的GO IDE .当我必须让emacs生成一个文件时,我遇到了问题
在Emacs中,运行Mx update-file-autoloads,将其指向go-mode.el文件,并告诉它生成一个go-mode-load.el文件.
当我输入文件的路径(位置~/.emacs.d/go-mode/go-mode.el)时,我收到此错误
Opening output file: no such file or directory, /build/buildd/emacs23-23.3+1/debian/build-x/lisp/loaddefs.el
Run Code Online (Sandbox Code Playgroud)
我locate在这个文件上做了一个,看到我确实有它,但不是在上面指定的路径上
$ locate loaddefs.el
/usr/share/emacs/23.3/lisp/loaddefs.el
...
Run Code Online (Sandbox Code Playgroud)
如果我不得不猜我会说某种路径问题.我必须在某处设置路径变量吗?
我安装了emacs apt-get install emacs23
我在Ubuntu 12.04上
谢谢
编辑
我正在做的过程来获取错误.
M-x update-file-autoloads 输入
Update autoloads for file: 〜/ .emacs.d/go-mode/go-mode.el输入
Opening output file: no such file or directory, /build/buildd/emacs23-23.3+1/debian/build-x/lisp/loaddefs.el
(不是答案,但需要格式化) go-mode.el 中是否有“生成的自动加载文件”的本地定义?如果是这样,它会写在那里,所以你需要删除该行。
;; 更新文件自动加载文档
update-file-autoloads 是“autoload.el”中的一个交互式编译的 Lisp 函数。
(更新文件自动加载文件和可选的保存后输出文件)
更新 FILE 的自动加载。如果前缀 arg SAVE-AFTER 不为零,则也保存缓冲区。
如果 FILE 绑定generated-autoload-file' as a file-local variable,
autoloads are written into that file. Otherwise, the autoloads
file is determined by OUTFILE. If called interactively, prompt
for OUTFILE; if called from Lisp with OUTFILE nil, use the
existing value of生成的自动加载文件'。
如果其中没有自动加载 cookie,则返回 FILE,否则返回 nil。