diff options
author | Alan Pearce | 2017-08-04 15:29:47 +0200 |
---|---|---|
committer | Alan Pearce | 2017-08-04 15:29:47 +0200 |
commit | cd060d4e5ecd0f53e14d698e8a76f28d2415a20c (patch) | |
tree | bc582982331310a797fb034f1b71827db872a7f3 | |
parent | 14a8c8a386663a969f72fbd6cfb67ea0f475c43c (diff) | |
download | dotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.tar.lz dotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.tar.zst dotfiles-cd060d4e5ecd0f53e14d698e8a76f28d2415a20c.zip |
Emacs: Simplify search for init file
-rw-r--r-- | emacs/.emacs.d/init.el | 5 |
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*)) |