all repos — nixfiles @ cd060d4e5ecd0f53e14d698e8a76f28d2415a20c

System and user configuration, managed by nix and home-manager

Emacs: Simplify search for init file

Alan Pearce
commit

cd060d4e5ecd0f53e14d698e8a76f28d2415a20c

parent

14a8c8a386663a969f72fbd6cfb67ea0f475c43c

1 file changed, 1 insertion(+), 4 deletions(-)

jump to
M emacs/.emacs.d/init.elemacs/.emacs.d/init.el
@@ -1425,10 +1425,7 @@ ;; ** Misc
;; #+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*))