Re: Can we add a function which is used to returned immediately within an source file for lib?
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: Can we add a function which is used to returned immediately within an source file for lib?         


Author: Kevin 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) ...
Show full article (1.54Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Hypergeometric functions and beta functionssci.math ·