[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to byte-compile .el files automatically after save?
From: |
Robert D. Crawford |
Subject: |
Re: how to byte-compile .el files automatically after save? |
Date: |
Mon, 06 Aug 2007 21:29:27 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
sunway <sunwayforever@gmail.com> writes:
> i have tried after-save-hook, but that will make emacs byte-compile
> other file other than *.el after save.
Here is one:
(add-hook 'emacs-lisp-mode-hook
'(lambda ()
(make-local-hook 'after-save-hook)
(add-hook 'after-save-hook
'(lambda ()
(byte-compile-file buffer-file-name))
nil t)))
rdc
--
Robert D. Crawford rdc1x@comcast.net
You'll feel devilish tonight. Toss dynamite caps under a flamenco dancer's
heel.
- how to byte-compile .el files automatically after save?, sunway, 2007/08/06
- Re: how to byte-compile .el files automatically after save?,
Robert D. Crawford <=
- Emacs, brianjiang, 2007/08/06
- Re: Emacs, Eli Zaretskii, 2007/08/07
- RE: Emacs, brianjiang, 2007/08/07
- Re: Emacs, Eli Zaretskii, 2007/08/08
- RE: Emacs, brianjiang, 2007/08/08
Re: how to byte-compile .el files automatically after save?, sunway, 2007/08/07