-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
;;; core-compilation.el --- Spacemacs Core File | ||
;; | ||
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors | ||
;; | ||
;; Author: Eugene "JAremko" Yaremenko <[email protected]> | ||
;; URL: https://github.com/syl20bnr/spacemacs | ||
;; | ||
;; This file is not part of GNU Emacs. | ||
;; | ||
;;; License: GPLv3 | ||
|
||
(defconst spacemacs-compiled-files | ||
'(;; Built-in libs that we changed | ||
"core/libs/forks/load-env-vars.el" | ||
;; Rest of built-in libs. | ||
"core/libs/dash.el" | ||
"core/libs/ht.el" | ||
"core/libs/ido-vertical-mode.el" | ||
"core/libs/package-build-badges.el" | ||
"core/libs/package-build.el" | ||
"core/libs/package-recipe-mode.el" | ||
"core/libs/page-break-lines.el" | ||
"core/libs/quelpa.el" | ||
"core/libs/spinner.el") | ||
"List of Spacemacs files that should be compiled. | ||
File paths are relative to the `user-emacs-directory'.") | ||
|
||
(defun spacemacs//ensure-compilation (files) | ||
"Make sure that the .el FILES are compiled." | ||
(dolist (file files) | ||
(let ((fbn (file-name-sans-extension (file-truename file)))) | ||
(unless (file-exists-p (concat fbn ".elc")) | ||
(byte-compile-file (concat fbn ".el")))))) | ||
|
||
(provide 'core-compilation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters