Emacs: don't initialise *init-file* when user-init-file is not set
Alan Pearce alan@alanpearce.co.uk
Sat, 22 Jun 2013 10:04:20 +0100
1 files changed, 4 insertions(+), 1 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -47,7 +47,10 @@ (defun env/recheck-location () (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