diff options
author | Alan Pearce | 2017-03-06 09:42:43 +0100 |
---|---|---|
committer | Alan Pearce | 2017-03-06 09:42:43 +0100 |
commit | 9e441262fb1a7beebbcec8b4eb58535ff36b1ece (patch) | |
tree | be7f6c52a3bf39e7fa7c3fef1e662466ad471aa4 | |
parent | f8d667341977a445fd701a07112b97896b0ce1f9 (diff) | |
download | dotfiles-9e441262fb1a7beebbcec8b4eb58535ff36b1ece.tar.lz dotfiles-9e441262fb1a7beebbcec8b4eb58535ff36b1ece.tar.zst dotfiles-9e441262fb1a7beebbcec8b4eb58535ff36b1ece.zip |
Emacs: Store file-name-handler-alist into variable
-rw-r--r-- | tag-emacs/emacs.d/init.org | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 77c4674..efb51a1 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -13,7 +13,9 @@ Open Emacs with just a plain window. No graphics or messages, please! (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 @@ Start a server if possible. A daemon is already a 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 |