The default list is specified in paths. Incidentally, load-library is an interactive interface to the load function. The complete function looks like this:. The source for the load-library command is in the files. Another interactive command that does a slightly different job is load-file. If Emacs is running uninstalled, it also adds site-lisp directories from the source and build directories, if they exist.
Normally these directories do not contain site-lisp directories. Emacs initializes load-path based on the value of the environment variable. An empty element in the value of the environment variable, whether trailing as in the above example , leading, or embedded, is replaced by the default value of load-path as determined by the standard initialization procedure.
You must include either an empty element, or the explicit path to the directory containing the standard Lisp files, else Emacs will not function.
Another way to modify load-path is to use the -L command-line option when starting Emacs; see below. For each directory in load-path , Emacs then checks to see if it contains a file subdirs. The subdirs. Both immediate subdirectories and subdirectories multiple levels down are added. But it excludes subdirectories whose names do not start with a letter or digit, and subdirectories named RCS or CVS , and subdirectories containing a file named. It also adds the directories where optional packages are installed, if any see Packaging Basics.
For example:. Don't disable the warning. This is because Emacs writes files to this directory, and therefore it's possible there are existing cases for those files to conflict with the names of elisp libraries. If you have this directory in your load path, and you have such a name clash, then Emacs will attempt to load the wrong file if that library is required. Just change your configuration. This will ensure that if a file in your. Adding 'initialization to warning-suppress-types or warning-suppress-log-types will suppress the warning, but you also won't see errors or warnings if something goes wrong in your init file.
The solution I use in my. This will need updating if the warning message changes. If you want to keep personal files directly in your.
0コメント