Enable automatic init file byte-compilation
This commit is contained in:
parent
5c19ef17b0
commit
01df2ad201
14
init.el
14
init.el
@ -179,8 +179,18 @@
|
|||||||
(package-install 'use-package))
|
(package-install 'use-package))
|
||||||
|
|
||||||
;; Require use-package.
|
;; Require use-package.
|
||||||
(eval-when-compile
|
(require 'use-package)
|
||||||
(require 'use-package))
|
|
||||||
|
;;====================
|
||||||
|
;; Init File
|
||||||
|
;;====================
|
||||||
|
|
||||||
|
;; Make sure that the latest version of the init file is always byte-compiled.
|
||||||
|
(if (file-newer-than-file-p
|
||||||
|
(concat user-emacs-directory "init.el")
|
||||||
|
(concat user-emacs-directory "init.elc"))
|
||||||
|
(save-restriction
|
||||||
|
(byte-compile-file (concat user-emacs-directory "init.el"))))
|
||||||
|
|
||||||
;;====================
|
;;====================
|
||||||
;; Garbage Collector
|
;; Garbage Collector
|
||||||
|
Loading…
Reference in New Issue
Block a user