.emacs.d and site- lisp

I have the following two questions: emacs

  • My .emacs.d directory has an empty directory called auto-save-list. What it is?

  • I created the elisp directory in my home directory on my Linux machine, where I host the .el files. In my .emacs I have (add-to-list 'load-path "~/elisp") Now I heard about the .emacs.d / site-lisp directory. Im confused about the difference between the lisp site and my own elisp folder. Can someone explain.

thanks

+3
source share
1 answer

You can read here auto-save-list here:

Ch i g (emacs) Recover RET

Emacs records information about terminated sessions for later recovery in files named `.saves-PID-HOSTNAME 'in the directory` ~ / .emacs.d / auto-save-list /'. This directory is defined by the variable `auto-save-list-file-prefix '. If you set `auto-save-list-file-prefix 'to` nil', sessions will not be recorded for recovery.

You may get a little confused with site-lisp - the only standard directory under this name is not intended to live in the user's home directory (usually it lives in /usr/local/share/emacs/site-lisp ), and the only feature is that by default Emacs will include it in the load-path list.

The goal, as the name implies, is that libraries that should be accessible to all users on a given computer can be placed in this directory.

In contrast, the ~/elisp that you created will not be accessible to anyone else.

More details here:

Ch i g (emacs) Init File RET

+6
source

Source: https://habr.com/ru/post/1415531/


All Articles