[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if both .emacs and .emacs.elc,which one emacs load?

From: Niels Freimann
Subject: Re: if both .emacs and .emacs.elc,which one emacs load?
Date: Sat, 24 May 2003 08:34:23 +0200
User-agent: KMail/1.4.3

try it out and you'll never forget to re-compile:

(defun autocompile()
  "compile itself if ~/.emacs"
  (if (string= (buffer-file-name) (concat default-directory ".emacs"))
      (byte-compile-file (buffer-file-name))))
(add-hook 'after-save-hook 'autocompile())

> Besides, it's not worth your time you'll lose someday when you'll edit
> the non-compiled version, expect a change to happen, and you'll forget
> to re-compile it, and wonder why your change didn't have any effect

reply via email to

[Prev in Thread] Current Thread [Next in Thread]