unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el]
       [not found] ` <0c7jr2o96i.fsf@violetta.imada.sdu.dk>
@ 2004-09-16 20:28   ` Dan Jacobson
  0 siblings, 0 replies; only message in thread
From: Dan Jacobson @ 2004-09-16 20:28 UTC (permalink / raw)
  Cc: bug-gnu-emacs, bugs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-16 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87wtz3xet8.fsf@jidanni.org>
     [not found] ` <0c7jr2o96i.fsf@violetta.imada.sdu.dk>
2004-09-16 20:28   ` byte-compile .el's upon saving [was Re: batch-byte-compile .gnus.el] Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).