Subject: Re: bug#940: Is there a way to quit loading of ~/.emacs please?

From: Stefan Monnier <[email-masked]>
Date: Tue, 09 Sep 2008 10:52:20 -0400

> Is there a way to quit the loading after we compile the ~/.emacs and
> load the ~/.emacs.elc file?

Of course:

 (defun byte-compile-file-if-newer (src)
   (let ((result (concat src ".elc")))
     (when (file-newer-than-file-p src result)
       (byte-compile-file src)
       (load-file result)
       t)))

 (unless (byte-compile-file-if-newer "~/.emacs")
   ... the rest of your .emacs...
   )

-- Stefan