[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
batch-byte-compile .gnus.el
From: |
Dan Jacobson |
Subject: |
batch-byte-compile .gnus.el |
Date: |
Fri, 10 Sep 2004 06:22:59 +0800 |
After reading gnus Info node "Compilation", perhaps using
;Local Variables:
;compile-command: "emacs -batch -l .emacs -f batch-byte-compile .gnus.el"
;End:
at the bottom of .gnus.el should be mentioned there too.
Perhaps it is the ultimate solution?
Wait. Wrap this around your .gnus.el instead:
(let ((el (expand-file-name "~/.gnus.el"))
(elc (expand-file-name "~/.gnus.elc")))
(if (file-newer-than-file-p el elc)
(progn
(message "%s is not up to date, byte-compiling %s..." el elc)
(sit-for 1)
(byte-compile-file el)
(load elc nil t t))
;ELSE: to the end of the file!
;;guts of .gnus.el go here
))
I wanted to not hardwire the file names in but they are needed in
during byte-compile apparently, buffer-file-name can't be used.
- batch-byte-compile .gnus.el,
Dan Jacobson <=