Emacs: Store file-name-handler-alist into variable
Alan Pearce alan@alanpearce.uk
Mon, 06 Mar 2017 09:42:43 +0100
1 files changed, 4 insertions(+), 6 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -13,7 +13,9 @@ (put 'inhibit-startup-echo-area-message 'saved-value (setq inhibit-startup-echo-area-message (user-login-name))) (setq inhibit-startup-screen t) (setq gc-cons-threshold 100000000) -(setq file-name-handler-alist nil) +(setq file-name-handler-alist-backup file-name-handler-alist + file-name-handler-alist nil) +(remove-hook 'find-file-hooks #'vc-find-file-hook) #+END_SRC ** Scratch buffers @@ -2552,9 +2554,5 @@ (require 'server) (unless (server-running-p server-name) (server-start))))) (setq gc-cons-threshold 800000 - file-name-handler-alist '(("\\(?:\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'" . jka-compr-handler) - ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" . epa-file-handler) - ("\\`/[^/]*\\'" . tramp-completion-file-name-handler) - ("\\`/[^/|:][^/|]*:" . tramp-file-name-handler) - ("\\`/:" . file-name-non-special))) + file-name-handler-alist file-name-handler-alist-backup) #+END_SRC