help-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: Re: if both .emacs and .emacs.elc,which one emacs load?
Date: Sat, 24 May 2003 13:27:45 +0300

> From: Niels Freimann <address@hidden>
> Date: Sat, 24 May 2003 08:34:23 +0200
> 
> (defun autocompile()
>   "compile itself if ~/.emacs"
>   (interactive)
>   (if (string= (buffer-file-name) (concat default-directory ".emacs"))
>       (byte-compile-file (buffer-file-name))))

Beware: this doesn't take into account those platforms where the init
file might be called "_emacs" instead.




reply via email to

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