~hristoast/dot-emacs

dc59ef2707433b6df988f62cf4bf27d3835d0639 — Hristos N. Triantafillou 1 year, 8 months ago b839dd4
Allow for not loading anything
1 files changed, 11 insertions(+), 9 deletions(-)

M init.el
M init.el => init.el +11 -9
@@ 86,15 86,17 @@
      "EMACS_NO_YAML" "yaml"
      "EMACS_NO_CUSTOMIZE" "customize")))

;; Load everything
(maphash
 (lambda (env-var filename)
   (unless (getenv env-var)
     (let ((el-file (concat user-emacs-directory "lib/" filename ".el")))
       (if (file-exists-p el-file)
           (load el-file)
         (message (concat "Could not load the file: " el-file))))))
 h/modules)
;; Maybe load everything. Not loading everything is useful for
;; when you want plain Emacs with straight.el and use-package.
(when (not (getenv "EMACS_VANILLA_SETUP"))
           (maphash
            (lambda (env-var filename)
              (unless (getenv env-var)
                (let ((el-file (concat user-emacs-directory "lib/" filename ".el")))
                  (if (file-exists-p el-file)
                      (load el-file)
                    (message (concat "Could not load the file: " el-file))))))
            h/modules))

;; How long did we take to load?
(let ((elapsed