From 6bd7b722819422a0f65e2498da5229aa1710491c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 6 Dec 2018 15:51:59 -0500 Subject: [PATCH] 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. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 62500530d..3bab9f7e1 100644 --- a/init.el +++ b/init.el @@ -58,7 +58,7 @@ decrease this. If you experience stuttering, increase this.") ;; You get a minor speed up by nooping this. (setq file-name-handler-alist nil) ;; 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