Update file-name-handler-alist initial value

This commit is contained in:
James Cherti
2025-02-02 21:14:27 -05:00
parent 01e8828da8
commit 273854e15e

View File

@@ -101,8 +101,7 @@ When set to non-nil, Emacs will automatically call `package-initialize' and
nil nil
(list (rassq 'jka-compr-handler old-value)))) (list (rassq 'jka-compr-handler old-value))))
;; Ensure the new value persists through any current let-binding. ;; Ensure the new value persists through any current let-binding.
(set-default-toplevel-value 'file-name-handler-alist (put 'file-name-handler-alist 'initial-value old-value)
file-name-handler-alist)
;; Remember the old value to reset it as needed. ;; Remember the old value to reset it as needed.
(add-hook 'emacs-startup-hook (add-hook 'emacs-startup-hook
(lambda () (lambda ()