问题描述
我有关于emacs的以下两个问题
I have the following two questions about emacs
-
在我的.emacs.d目录中有一个名为auto - 保存列表。这是为什么?
In my .emacs.d directory there is an empty directory called auto-save-list. What is that for ?
我在我的linux机器上的home目录中创建了一个elisp目录,我放置.el文件。在我的.emacs中,我有(add-to-list'load-path〜/ elisp)
现在,我听说过.emacs.d / site-lisp目录。我很困惑site-lisp和我自己的elisp目录之间的区别。有人可以解释一下。
I have create a elisp directory in my home directory on my linux machine where i place .el files. In my .emacs i have (add-to-list 'load-path "~/elisp")
Now,I have heard of .emacs.d/site-lisp directory. Im confused about the difference between site-lisp and my own elisp directory. Can someone please explain.
谢谢
推荐答案
您可以在这里阅读关于 auto-save-list
的
You can read about auto-save-list
here:
(emacs)恢复
您可能对 site-lisp
有点混淆 - 该名称唯一的标准目录不是生活在用户的主目录下(通常它在 / usr / local / share / emacs / site-lisp
),唯一特别的是Emacs将它包含在 load-path
列表。
You may be slightly confused about site-lisp
-- the only standard directory by that name is not intended to live under a user's home directory (typically it lives at /usr/local/share/emacs/site-lisp
), and the only special thing about it is that Emacs will include it in the load-path
list by default.
顾名思义,意图是可以在给定的所有用户使用的库机器可以放在该目录中。
The intention, as the name suggests, is that libraries which should be available to all users on a given machine can be placed in that directory.
相比之下,您创建的〜/ elisp
目录不会
By contrast, the ~/elisp
directory you've created will not be available to anyone else.
在此阅读更多:
(emacs)Init File
这篇关于.emacs.d和site-lisp目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!