From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: customize Date: Tue, 13 Aug 2002 12:28:16 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <200208131628.g7DGSGH13851@rum.cs.yale.edu> References: <200207111201.g6BC1OM16938@aztec.santafe.edu> <15680.26449.937153.817907@localhost.localdomain> <200207271853.g6RIrdt10834@aztec.santafe.edu> <200207291522.g6TFMLj26086@localhost.localdomain> <200208090652.g796qvr11416@rum.cs.yale.edu> <200208101716.g7AHGdT05929@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029256133 23060 127.0.0.1 (13 Aug 2002 16:28:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 13 Aug 2002 16:28:53 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, abraham@dina.kvl.dk, y@mit.edu, emacs-devel@gnu.org, eddy@opera.no Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17eeXM-0005zp-00 for ; Tue, 13 Aug 2002 18:28:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17eevx-0000wH-00 for ; Tue, 13 Aug 2002 18:54:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eeY9-0003Kv-00; Tue, 13 Aug 2002 12:29:41 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17eeWs-00034F-00 for emacs-devel@gnu.org; Tue, 13 Aug 2002 12:28:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17eeWn-00033c-00 for emacs-devel@gnu.org; Tue, 13 Aug 2002 12:28:21 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17eeWn-00033W-00; Tue, 13 Aug 2002 12:28:17 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id g7DGSGH13851; Tue, 13 Aug 2002 12:28:16 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6501 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6501 > 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.