From 74c5f1111a1f5ba2e419095eee83b984a90e73bc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 10 Jun 2017 22:59:51 +0200 Subject: [PATCH] require => load! (premature optimization) --- core/core.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/core.el b/core/core.el index 05d6c0448..c2915a467 100644 --- a/core/core.el +++ b/core/core.el @@ -167,17 +167,17 @@ enable multiple minor modes for the same regexp.") doom--package-load-path (eval-when-compile doom--package-load-path)) ;;; Let 'er rip -(require 'core-lib) -(require 'core-os) ; consistent behavior across Oses +(load! core-lib) +(load! core-os) ; consistent behavior across Oses (with-demoted-errors "AUTOLOAD ERROR: %s" (require 'autoloads doom-autoload-file t)) (unless noninteractive - (require 'core-ui) ; draw me like one of your French editors - (require 'core-popups) ; taming sudden yet inevitable windows - (require 'core-editor) ; baseline configuration for text editing - (require 'core-projects) ; making Emacs project-aware - (require 'core-keybinds)) ; centralized keybind system + which-key + (load! core-ui) ; draw me like one of your French editors + (load! core-popups) ; taming sudden yet inevitable windows + (load! core-editor) ; baseline configuration for text editing + (load! core-projects) ; making Emacs project-aware + (load! core-keybinds)) ; centralized keybind system + which-key (defun doom|init () (setq gc-cons-threshold 16777216