Skip to content

Commit

Permalink
[core] less ".el" suffix for support both *.el and *.elc
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin Sun authored and smile13241324 committed Jan 3, 2022
1 parent 4625745 commit 0206197
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/core-dumper.el
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ When universal prefix argument is passed then display the process buffer."
:command
(list dotspacemacs-emacs-pdumper-executable-file
"--batch"
"-l" (concat spacemacs-start-directory "dump-init.el")
"-l" (concat spacemacs-start-directory "dump-init")
"-eval" (concat "(dump-emacs-portable \"" dump-file-temp "\")"))))
(when (equal '(4) display-buffer)
(pop-to-buffer spacemacs-dump-buffer-name))))
Expand Down
2 changes: 1 addition & 1 deletion dump-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(setq spacemacs-dump-mode 'dumping)
;; load init.el
(setq spacemacs-start-directory (file-name-directory load-file-name))
(load (concat spacemacs-start-directory "init.el"))
(load (concat spacemacs-start-directory "init"))
;; prepare the dump
(spacemacs/dump-save-load-path)
;; disable undo-tree to prevent from segfaulting when loading the dump
Expand Down
2 changes: 1 addition & 1 deletion early-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
(setq package-enable-at-startup nil)

(load (concat (file-name-directory load-file-name)
"core/core-early-funcs.el")
"core/core-early-funcs")
nil (not init-file-debug))

;; Remove GUI elements soon after GUI being initialized to avoid some possible grapical glitches.
Expand Down
8 changes: 4 additions & 4 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
(defconst emacs-start-time (current-time))
(setq gc-cons-threshold 402653184 gc-cons-percentage 0.6)
(load (concat (file-name-directory load-file-name)
"core/core-versions.el")
"core/core-versions")
nil (not init-file-debug))
(load (concat (file-name-directory load-file-name)
"core/core-load-paths.el")
"core/core-load-paths")
nil (not init-file-debug))
(load (concat spacemacs-core-directory "core-dumper.el")
(load (concat spacemacs-core-directory "core-dumper")
nil (not init-file-debug))

;; Remove compiled core files if they become stale or Emacs version has changed.
(load (concat spacemacs-core-directory "core-compilation.el")
(load (concat spacemacs-core-directory "core-compilation")
nil (not init-file-debug))
(load spacemacs--last-emacs-version-file t (not init-file-debug))
(when (or (not (string= spacemacs--last-emacs-version emacs-version))
Expand Down

0 comments on commit 0206197

Please sign in to comment.