From bd70cf69863edb293f2cf4a14275327ea411fdcf Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 22 Jun 2013 10:04:20 +0100 Subject: Emacs: don't initialise *init-file* when user-init-file is not set --- emacs/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index b9b29e16..6ab12fe4 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -47,7 +47,10 @@ Values: `desktop', `server', `laptop'") (interactive) (setq env/location (env/get-location))) -(defvar *init-file* (expand-file-name "init.el" (file-name-directory (file-truename user-init-file))) +(defvar *init-file* + (when user-init-file + (expand-file-name "init.el" + (file-name-directory (file-truename user-init-file)))) "Where the emacs init file really is, passing through symlinks.") ;;;; Package Management -- cgit 1.4.1