-
Notifications
You must be signed in to change notification settings - Fork 1
/
change-paths.patch
67 lines (64 loc) · 2.76 KB
/
change-paths.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el
index 4e373e590..2f592be2a 100644
--- a/core/core-configuration-layer.el
+++ b/core/core-configuration-layer.el
@@ -28,7 +28,7 @@
"Configuration layer templates directory.")
(defconst configuration-layer-directory
- (expand-file-name (concat spacemacs-start-directory "layers/"))
+ (expand-file-name (concat spacemacs-immutable-directory "layers/"))
"Spacemacs contribution layers base directory.")
(defconst configuration-layer-private-directory
diff --git a/core/core-load-paths.el b/core/core-load-paths.el
index 3e17d4ec4..89ec5a6e0 100644
--- a/core/core-load-paths.el
+++ b/core/core-load-paths.el
@@ -20,7 +20,7 @@
user-emacs-directory
"Spacemacs start directory.")
(defconst spacemacs-core-directory
- (expand-file-name (concat spacemacs-start-directory "core/"))
+ (expand-file-name (concat spacemacs-immutable-directory "core/"))
"Spacemacs core directory.")
(defconst spacemacs-info-directory
(expand-file-name (concat spacemacs-core-directory "info/"))
@@ -48,16 +48,16 @@
(expand-file-name (concat spacemacs-cache-directory "auto-save/"))
"Spacemacs auto-save directory")
(defconst spacemacs-docs-directory
- (expand-file-name (concat spacemacs-start-directory "doc/"))
+ (expand-file-name (concat spacemacs-immutable-directory "doc/"))
"Spacemacs documentation directory.")
(defconst spacemacs-news-directory
- (expand-file-name (concat spacemacs-start-directory "news/"))
+ (expand-file-name (concat spacemacs-immutable-directory "news/"))
"Spacemacs News directory.")
(defconst spacemacs-assets-directory
- (expand-file-name (concat spacemacs-start-directory "assets/"))
+ (expand-file-name (concat spacemacs-immutable-directory "assets/"))
"Spacemacs assets directory.")
(defconst spacemacs-test-directory
- (expand-file-name (concat spacemacs-start-directory "tests/"))
+ (expand-file-name (concat spacemacs-immutable-directory "tests/"))
"Spacemacs tests directory.")
(defconst user-home-directory
@@ -80,4 +80,3 @@
;; themes
(add-to-list 'custom-theme-load-path (concat spacemacs-core-directory
"libs/spacemacs-theme/"))
-
diff --git a/init.el b/init.el
index e2aaff131..867cab184 100644
--- a/init.el
+++ b/init.el
@@ -23,7 +23,9 @@
(error (concat "Your version of Emacs (%s) is too old. "
"Spacemacs requires Emacs version %s or above.")
emacs-version spacemacs-emacs-min-version)
- (load-file (concat (file-name-directory load-file-name)
+ (defvar spacemacs-immutable-directory
+ (file-name-directory load-file-name))
+ (load-file (concat spacemacs-immutable-directory
"core/core-load-paths.el"))
(require 'core-spacemacs)
(spacemacs/init)