> I have this code in my ~/.emacs to automatically byte compile when I
> save the file.
>
> (defun autocompile nil
> "compile itself if ~/.emacs"
> (interactive)
> (require 'bytecomp)
> (if (string= (buffer-file-name) (expand-file-name (concat default-directory ".emacs")))
> (byte-compile-file (buffer-file-name))))
> (add-hook 'after-save-hook 'autocompile)
That will automatically byte compile .emacs files in any directory.
-- Kevin Rodgers
_______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs