diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-13 17:01:24 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-05-13 17:02:56 +0530 |
commit | 955f2a223ca76fd4c606e1346731ce2b4f6ed5ac (patch) | |
tree | c7255403010fd61fc97b8a4b3e65a2779e0eb45c /Emacs/.config/emacs/init.el | |
parent | 8fcdfac6614e1ea84f2bfd100b5713ce7dce2db0 (diff) | |
download | dotfiles-955f2a223ca76fd4c606e1346731ce2b4f6ed5ac.tar.gz dotfiles-955f2a223ca76fd4c606e1346731ce2b4f6ed5ac.tar.bz2 dotfiles-955f2a223ca76fd4c606e1346731ce2b4f6ed5ac.zip |
(Emacs/config|init)~cut my init time to just a second
I had a problem with after-init-hook which would (while supposedly
keeping (emacs-init-time) under 1.2 seconds) take ages to start emacs
just due to how many things were starting up using it. So I removed
all the after-init-hook functions and instead aggressively demand the
stuff I need and defer everything else through ":defer", ":after",
":hook" and ":general".
Happy to say my boot time is now actually 1.2 seconds without
compilation.
Diffstat (limited to 'Emacs/.config/emacs/init.el')
-rw-r--r-- | Emacs/.config/emacs/init.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el index 6571584..0f7dfe8 100644 --- a/Emacs/.config/emacs/init.el +++ b/Emacs/.config/emacs/init.el @@ -27,6 +27,10 @@ ;; possible. (let ((gc-cons-threshold most-positive-fixnum)) ;; Straight + (setq straight-disable-native-compile nil + straight-use-package-by-default nil + straight-check-for-modifications 'live) + (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name @@ -43,9 +47,7 @@ (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) - (setq straight-disable-native-compile nil - straight-use-package-by-default t - use-package-enable-imenu-support t + (setq use-package-enable-imenu-support t use-package-always-demand nil use-package-always-defer nil use-package-hook-name-suffix nil @@ -74,6 +76,8 @@ (when (daemonp) (require 'general) (require 'evil) + (require 'ivy) + (require 'counsel) (require 'notmuch) (require 'company) (require 'org) |