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:
parent
145b07972f
commit
6bd7b72281
1 changed files with 1 additions and 1 deletions
2
init.el
2
init.el
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue