[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: customize
From: |
Stefan Monnier |
Subject: |
Re: customize |
Date: |
Tue, 13 Aug 2002 12:28:16 -0400 |
> BTW. How about changing startup.el such that custom-file is loaded
> (after .emacs) if it has been set and if the file hasn't been loaded yet
> (such that users only need to put (setq custom-file "~/.custom") in
> their .emacs file) ?
>
> I see nothing wrong with that. Want to do it?
I use the patch below. If there's no objection, I'll install it.
We can then change the manual's example to just be
(setq custom-file "~/.emacs-custom")
-- Stefan
--- startup.el 4 Aug 2002 16:18:18 -0000 1.303
+++ startup.el 13 Aug 2002 16:25:37 -0000
@@ -932,6 +935,12 @@
(sit-for 1))
(setq user-init-file source))))
+ (when (and (stringp custom-file)
+ (not (assoc custom-file load-history)))
+ ;; If the .emacs file has set `custom-file' but hasn't
+ ;; loaded the file yet, let's load it.
+ (load custom-file t t))
+
(or inhibit-default-init
(let ((inhibit-startup-message nil))
;; Users are supposed to be told their rights.
- Re: customize, Jeff Dwork, 2002/08/02
- Re: customize, Per Abrahamsen, 2002/08/05
- Re: customize, chad, 2002/08/06
- Re: customize, Stefan Monnier, 2002/08/09
- Re: customize, Edward Welbourne, 2002/08/09
- Re: customize, Stefan Monnier, 2002/08/10
- Re: customize, futility of byte-compiling, Edward Welbourne, 2002/08/12
- Re: customize, futility of byte-compiling, Per Abrahamsen, 2002/08/12
- Re: customize, futility of byte-compiling, Stefan Monnier, 2002/08/12
- Re: customize, Richard Stallman, 2002/08/10
- Re: customize,
Stefan Monnier <=
- Re: customize, Richard Stallman, 2002/08/14
- Re: customize, Stefan Monnier, 2002/08/14
Re: customize, Stefan Monnier, 2002/08/09