summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 510cd8d0..6ee1f1ec 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -20,9 +20,10 @@
 ;;;; Environment & Location
 
 (defvar *init-file*
-  (when user-init-file
+  (let ((init-file (or user-init-file
+                       (expand-file-name "init.el" user-emacs-directory))))
     (expand-file-name "init.el"
-                      (file-name-directory (file-truename user-init-file))))
+                      (file-name-directory (file-truename init-file))))
   "Where the emacs init file really is, passing through symlinks.")
 
 ;;;; Package Management