Remove user-emacs-directory manipulation in init.el
if we really need this we should use an environment variable
This commit is contained in:
parent
038fc23c0d
commit
e4662ac485
13
init.el
13
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue