Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your <code>.emacs</code> or <code>init.el</code> shouldn't have many <code>require</code> or <code>load</code> commands, it should mostly have <code>autoload</code>. The <a href="http://www.gnu.org/software/emacs/manual/html_node/elisp/Autoload.html" rel="noreferrer"><code>autoload</code></a> function tells Emacs “if you ever need this function, load that file”. This way, the file is only loaded when and if you actually use the function. You only need <code>require</code> (or very rarely <code>load</code>) in two cases:</p> <ul> <li>if there's a customization that needs to go into effect immediately (e.g. <code>(require 'cl)</code>, a color theme);</li> <li>if what you're loading is a small file that contains the <code>autoloads</code> and other start-up definitions of a package (e.g. <code>(require 'tex-site)</code>.</li> </ul> <p>If you're not doing this already, calling <code>autoload</code> for things like mode-specific customizations can cut your startup time down significantly, because Emacs will have to load fewer files.</p> <p>Furthermore, make sure your files are byte-compiled; they'll load a little faster (less CPU time). Call <code>M-x emacs-lisp-byte-compile</code> on each <code>.el</code> file, or <code>M-x byte-recompile-directory</code> (these commands are in the Emacs-Lisp menu).</p> <p>Finally, note that load times don't matter so much because you should be <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html" rel="noreferrer">starting Emacs at most once per session</a>. Start Emacs automatically when you log in, either with a window or in the background with the <code>--daemon</code> option. Then, to edit a file, run <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/Invoking-emacsclient.html" rel="noreferrer"><code>emacsclient</code></a>. You can also <a href="http://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html" rel="noreferrer">tell <code>emacsclient</code> to start Emacs if it's not running yet</a> if you'd rather not start it when you log in.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload