What is the difference between "Mx load-file" and "Mx load-library" in emacs?

I tried reloading the ~ / .emacs file, and it seems that both commands are working fine. Then what's the difference between the two? To download .emacs, which command do I need to use?

+3
source share
2 answers

From the manual :

The Mx boot library differs from the Mx load-file in that it searches for a sequence of directories and tries three file names in each directory.

Suppose your argument is lib; the three names are lib.elc, lib.el, and finally just lib. If lib.elc exists, then this is the result of compiling lib.el; it’s better to download the compiled file, as it will load and run faster.

+4

. , load-library load-path. load-file .

0

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


All Articles