Remove user-emacs-directory manipulation in init.el

if we really need this we should use an environment variable
This commit is contained in:
syl20bnr 2015-08-10 23:58:08 -04:00
parent 038fc23c0d
commit e4662ac485
1 changed files with 0 additions and 13 deletions

13
init.el
View File

@ -19,19 +19,6 @@
(defun spacemacs/emacs-version-ok ()
(version<= spacemacs-emacs-min-version emacs-version))
(defun spacemacs/this-file ()
"Return true path to this file."
(cond
(load-in-progress load-file-name)
((and (boundp 'byte-compile-current-file) byte-compile-current-file)
byte-compile-current-file)
(:else (buffer-file-name))))
;; Always use emacs.d/ of the init.el supplied
(setq user-emacs-directory (file-name-directory
(file-truename
(spacemacs/this-file))))
(when (spacemacs/emacs-version-ok)
(load-file (concat user-emacs-directory "core/core-load-paths.el"))
(require 'core-spacemacs)