[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to byte-compile .el files automatically after save?
From: |
sunway |
Subject: |
Re: how to byte-compile .el files automatically after save? |
Date: |
Mon, 06 Aug 2007 21:26:21 -0700 |
User-agent: |
G2/1.0 |
On 8 7 , 10 29 , "Robert D. Crawford" <rd...@comcast.net> wrote:
> sunway <sunwayfore...@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 rd...@comcast.net
>
> You'll feel devilish tonight. Toss dynamite caps under a flamenco dancer's
> heel.
that works,but how to get rid of the *Compile-log* when byte-compile
the file?
every time when i save the *.el, the *Compile-log* will appear, which
is quite annoying.
- 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, 2007/08/06
- 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 <=