all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* .emacs (load {user-init-file, custom-file} causes duplicate load of both
@ 2010-11-11  1:14 Larry Evans
  2010-11-11  2:28 ` PJ Weisberg
  2010-11-11  7:45 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Larry Evans @ 2010-11-11  1:14 UTC (permalink / raw)
  To: help-gnu-emacs

My ~/.emacs file contains (amoung other things):

---{~/.emacs---
(setq user-init-file
      (expand-file-name "init.el"
			(expand-file-name ".emacs.d" "~")))
(setq custom-file
      (expand-file-name "custom.el"
			(expand-file-name ".xemacs" "~")))
(load-file user-init-file)
(load-file custom-file)
---}~/.emacs---

When started with this, the *messages* buffer contains:

---{*messages---
Loading /home/evansl/.emacs.d/init.el (source)...
Loading /home/evansl/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /home/evansl/.emacs.d/init.el (source)...done
Loading /home/evansl/.xemacs/custom.el (source)...
Loading desktop...done
Loading /home/evansl/.xemacs/custom.el (source)...done
---}*messages---

Why are both user-init-file and custom-file both loaded twice?

uname -a shows:

Linux evansl-desktop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19
01:38:40 UTC 2010 x86_64 GNU/Linux

emacs --version shows:

GNU Emacs 23.1.1

Any help is appreciated.

-Larry




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-11-13 12:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-11  1:14 .emacs (load {user-init-file, custom-file} causes duplicate load of both Larry Evans
2010-11-11  2:28 ` PJ Weisberg
2010-11-11  3:28   ` Larry Evans
2010-11-11  7:45 ` Eli Zaretskii
2010-11-11 11:22   ` Larry Evans
2010-11-11 12:09     ` Larry Evans
2010-11-11 14:32       ` Larry Evans
2010-11-11 18:26     ` Eli Zaretskii
2010-11-11 18:44       ` Larry Evans
2010-11-13 12:43         ` Howto avoid "Overwrite desktop file" question. (was " Larry Evans

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.