From: sunway <sunwayforever@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: how to byte-compile .el files automatically after save?
Date: Mon, 06 Aug 2007 21:26:21 -0700 [thread overview]
Message-ID: <1186460781.563107.222040@i13g2000prf.googlegroups.com> (raw)
In-Reply-To: <87fy2w6prs.fsf@comcast.net>
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.
next prev parent reply other threads:[~2007-08-07 4:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 23:48 how to byte-compile .el files automatically after save? sunway
2007-08-07 2:29 ` Robert D. Crawford
2007-08-07 3:15 ` Emacs brianjiang
2007-08-07 6:28 ` Emacs Herbert Euler
2007-08-07 8:38 ` Emacs brianjiang
2007-08-07 21:05 ` Emacs Eli Zaretskii
2007-08-08 2:48 ` Emacs brianjiang
2007-08-08 18:26 ` Emacs Eli Zaretskii
2007-08-09 1:18 ` Emacs brianjiang
2007-08-07 4:26 ` sunway [this message]
2007-08-07 15:37 ` how to byte-compile .el files automatically after save? Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1186460781.563107.222040@i13g2000prf.googlegroups.com \
--to=sunwayforever@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.