3

我正在使用说明页面为 Emacs 安装 Prolog 插件,它显示以下内容:

In a nutshell, place the downloaded file where Emacs can see it, 
and insert into your ~/.emacs or ~/.xemacs/init.el the following 
lines:

将文件放在 Emacs 可以看到的地方是什么意思,如何插入 ~/.emacs?

4

2 回答 2

3

“将文件放在 Emacs 可以看到的地方”是指将文件prolog.el放在一个目录中,该目录专门用于存放其他每个用户的 Emacs 特定文件,例如放在~/.emacs.d/(like ~/.emacs.d/elisp) 的子目录中,如果需要,将该目录添加到load-path.

其他说明是指修改标准 Emacs 初始化文件,例如~/.emacs.d/init.el.将这些说明中给出的行插入到您自己的 Emacs 初始化文件中,然后保存文件并重新启动 Emacs。

于 2012-11-25T01:45:30.877 回答
0

根据您的发行版,可能已经发布了 prolog-mode。如果你打开一个 prolog 文件,检查模式行(底部的东西)在prolog某处说,你很高兴。也许它没有正确关联,请尝试M-x(Alt + x) 并键入 prolog-mode,然后按 Enter。现在prolog应该出现在模式行中。如果它没有继续并安装文件。否则,您的计算机上有一堆垃圾软件,您必须手动更新。

于 2012-11-25T01:54:59.963 回答