nbecker(a)fred.net wrote:
> One thing I like about python - is that byte compilation is performed
> automatically. What about doing the same for emacs lisp?
>
> When a .el is used, if the .elc doesn't exist or is older, byte
> compilation is done automatically.
>
> This makes it painless to have your .emacs byte compiled.
Here's a snippet that recently appeared in gnu.emacs.sources.
While it works fine for .el files, it probably needs a little tweaking
to work with ~/.emacs.
--
Darryl Okahata
darrylo(a)sr.hp.com
DISCLAIMER: this message is the author's personal opinion and does not
constitute the support, opinion, or policy of Hewlett-Packard, or of the
little green men that have been following him all day.
===============================================================================
From: Stainless Steel Rat <ratinox(a)peorth.gweep.net>
Newsgroups: comp.emacs,comp.emacs.xemacs,gnu.emacs.sources
Subject: Re: neat little macro to speed up your .emacs files...
Date: 20 Apr 1999 09:58:03 -0400
To: gnu-emacs-sources(a)gnu.org
* David Bakhash <cadet(a)mit.edu> on Sun, 18 Apr 1999
| Just thought I'd throw this out.
This is simpler:
;;; Local Variables:
;;; eval: (defun byte-compile-this-file () (write-region (point-min) (point-max) buffer-file-name nil 't) (byte-compile-file buffer-file-name t) t)
;;; write-file-hooks: (byte-compile-this-file)
;;; End: