.emacs.d和site-lisp目录 [英] .emacs.d and site-lisp directory
问题描述
我有关于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:
我 g (emacs)恢复
RET
Emacs记录关于中断会话的信息,以便在`〜/ .emacs.d /目录'目录中名为`.saves-PID-HOSTNAME'的文件中稍后恢复自动保存列表/。该目录由变量`auto-save-list-file-prefix'确定。如果将auto-save-list-file-prefix设置为nil,则不会记录会话以进行恢复。
Emacs records information about interrupted sessions for later recovery in files named `.saves-PID-HOSTNAME' in the directory `~/.emacs.d/auto-save-list/'. This directory is determined by the variable `auto-save-list-file-prefix'. If you set `auto-save-list-file-prefix' to `nil', sessions are not recorded for recovery.
您可能对 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.
在此阅读更多:
Ch i g (emacs)Init File
RET
这篇关于.emacs.d和site-lisp目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!