Author: Kevin RodgersKevin Rodgers Date: Sep 10, 2008 22:04
Yiyi Hu wrote:
> Can we add a function or extend (return t) to skip loading the rest of
> source please?
>
> Eg, my ~/.emacs
>
> (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))))
>
> (byte-compile-file-if-newer "~/.emacs")
>
> (custom-set-variables
> ;; custom-set-variables was added by Custom.
> ;; If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> '(auto-compression-mode t) ...
|