[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el]
From: |
Dan Jacobson |
Subject: |
byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el] |
Date: |
Fri, 17 Sep 2004 04:28:32 +0800 |
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.
This one is so good, perhaps it should go into various manuals:
>>>>> "A" == Andrew Swann mails me:
A> Another suggestion that might help is the following I have in my
A> .emacs.el that causes byte-compilation of elisp files on saving. I
A> got this from the net at some point, but don't recall where.
A> (add-hook 'emacs-lisp-mode-hook
A> '(lambda ()
A> (make-local-hook 'after-save-hook)
A> (add-hook 'after-save-hook
A> '(lambda ()
A> (byte-compile-file buffer-file-name)
A> ) nil t)
A> ));; emacs-lisp-mode-hook
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el],
Dan Jacobson <=