Restore startup optimizations on after-init-hook

Fixes an issue where tramp file handlers were overwritten because they
were added to file-name-handler-alist at the end of after-init-hook.
This commit is contained in:
Henrik Lissner 2018-12-06 15:51:59 -05:00
parent 145b07972f
commit 6bd7b72281
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -58,7 +58,7 @@ decrease this. If you experience stuttering, increase this.")
;; You get a minor speed up by nooping this. ;; You get a minor speed up by nooping this.
(setq file-name-handler-alist nil) (setq file-name-handler-alist nil)
;; Not restoring these to their defaults will cause stuttering/freezes. ;; Not restoring these to their defaults will cause stuttering/freezes.
(add-hook 'emacs-startup-hook #'doom|restore-startup-optimizations)) (add-hook 'after-init-hook #'doom|restore-startup-optimizations))
;; Ensure Doom is running out of this file's directory ;; Ensure Doom is running out of this file's directory