1

Enable automatic init file byte-compilation

This commit is contained in:
Jessie Hildebrandt 2018-08-04 19:45:20 -04:00
parent 5c19ef17b0
commit 01df2ad201

14
init.el
View File

@ -179,8 +179,18 @@
(package-install '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