Only unset file-name-handler-alist in interactive sessions

This commit is contained in:
Henrik Lissner 2020-02-21 17:03:47 -05:00
parent a0a7c34517
commit 0f4c0cce5b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -23,7 +23,8 @@
;; This is consulted on every `require', `load' and various path/io functions.
;; You get a minor speed up by nooping this.
(setq file-name-handler-alist nil)
(unless noninteractive
(setq file-name-handler-alist nil))
;; Restore `file-name-handler-alist', because it is needed for handling
;; encrypted or compressed files, among other things.