summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-08-04 15:29:47 +0200
committerAlan Pearce2017-08-04 15:29:47 +0200
commitcd060d4e5ecd0f53e14d698e8a76f28d2415a20c (patch)
treebc582982331310a797fb034f1b71827db872a7f3
parent14a8c8a386663a969f72fbd6cfb67ea0f475c43c (diff)
downloaddotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.tar.lz
dotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.tar.zst
dotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.zip
Emacs: Simplify search for init file
-rw-r--r--emacs/.emacs.d/init.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 924100a..ef66d64 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -1425,10 +1425,7 @@
 
 ;; #+BEGIN_SRC emacs-lisp
 (defvar *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 init-file))))
+  (file-truename user-init-file)
   "Where the emacs init file really is, passing through symlinks.")
 (set-register ?e `(file . ,*init-file*))