diff options
author | Alan Pearce | 2013-06-22 10:04:20 +0100 |
---|---|---|
committer | Alan Pearce | 2013-06-22 10:04:20 +0100 |
commit | bd70cf69863edb293f2cf4a14275327ea411fdcf (patch) | |
tree | 7f2cd3aa6f5a5081d021f1e42adcf32dad262c06 | |
parent | 3b77cea165c47d617035c3fb622aaa9cfcc3bcaa (diff) | |
download | dotfiles-bd70cf69863edb293f2cf4a14275327ea411fdcf.tar.lz dotfiles-bd70cf69863edb293f2cf4a14275327ea411fdcf.tar.zst dotfiles-bd70cf69863edb293f2cf4a14275327ea411fdcf.zip |
Emacs: don't initialise *init-file* when user-init-file is not set
-rw-r--r-- | emacs/init.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el index b9b29e1..6ab12fe 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 |