diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-12-13 12:18:51 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-12-13 12:18:51 +0000 |
commit | 6ee84789896fc713f470dbd4979aa905d407d40c (patch) | |
tree | 8f406140a9feef1200beb3a6a243a4ebe60e452b | |
parent | 38e54861ac6ef9cfc7e443399154a30f67d7d0b0 (diff) | |
download | dotfiles-6ee84789896fc713f470dbd4979aa905d407d40c.tar.gz |
Add another startup optimisation
-rw-r--r-- | .emacs.d/early-init.el | 4 | ||||
-rw-r--r-- | .emacs.d/init.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el index 1dd7a01..d76cf5a 100644 --- a/.emacs.d/early-init.el +++ b/.emacs.d/early-init.el @@ -5,6 +5,10 @@ (setq gc-cons-threshold most-positive-fixnum gc-cons-percentage 0.6) +;;https://github.com/magnars/emacsd-reboot/blob/44ebe6b5f80deebe0907be55f206a0a3f7fc9fcd/settings/fast-startup.el#L11-L12 +(setq file-name-handler-alist-original file-name-handler-alist) +(setq file-name-handler-alist nil) + (setq load-prefer-newer t native-comp-async-report-warnings-errors nil native-comp-warning-on-missing-source nil diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2250665..52f9d79 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -23,7 +23,10 @@ (add-hook 'elpaca-after-init-hook #'(lambda () (setq gc-cons-threshold (* 100 1024 1024) - gc-cons-percentage 0.1)) + gc-cons-percentage 0.1 + ;; https://github.com/magnars/emacsd-reboot/blob/44ebe6b5f80deebe0907be55f206a0a3f7fc9fcd/settings/fast-startup.el#L28-29 + (setq file-name-handler-alist file-name-handler-alist-original) + (makunbound 'file-name-handler-alist-original))) 99) (require 'init-packages) |