我正在使用这个指南页面安装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中?
我正在使用这个指南页面安装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:
prolog.el
放置在专门用于存放每个用户的Emacs特定附加文件的目录,例如在~/.emacs.d/
的子目录中(如~/.emacs.d/elisp
),如果需要,将该目录添加到load-path
中。~/.emacs.d/init.el.
将这些说明中给出的行插入自己的Emacs初始化文件中,然后保存文件并重新启动Emacs。~/.emacs.d/
作为插件的(父级)目录的示例,正如我链接的说明中明确指出的那样。 - Keith Flower根据您的发行版,可能已经提供了一个 prolog-mode。
如果您打开一个 Prolog 文件,请检查 modeline(底部的区域)是否在某个地方显示为prolog
,那么就可以开始工作了。也许它没有正确关联,请尝试使用 M-x
(Alt+x)并输入 prolog-mode
,然后按回车键。现在prolog
应该出现在 modeline 中了。
如果它没有出现,请继续安装文件。否则,您需要手动更新计算机上的一些软件。
1.24
而不是 1.22
。然而,已发布版本在 2010/2011 年有一个维护者。也许值得尝试,也许不值得。 - Reactormonk