all repos — archive/dotfiles @ 260fad2ed071931265d3919faa3d429e06103e2c

Superseded by nixfiles

Emacs: Disable magic filename handling on startup
Alan Pearce alan.pearce@spotcap.com
Wed, 09 Dec 2015 17:01:29 +0100
commit

260fad2ed071931265d3919faa3d429e06103e2c

parent

b51f0140be39ee5efb670e5a38fb35226d57fb2f

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -11,6 +11,7 @@ #+BEGIN_SRC emacs-lisp   (setq inhibit-startup-echo-area-message "alan")
   (setq inhibit-startup-screen t)
   (setq gc-cons-threshold 100000000)
+  (setq file-name-handler-alist nil)
 #+END_SRC
 
 ** Scratch buffers
@@ -2435,5 +2436,10 @@ (if (server-running-p server-name)                                      (message "Server already appears to be running")
                                    (server-start)))))
   (benchmark-init/deactivate)
-  (setq gc-cons-threshold 800000)
+  (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)))
 #+END_SRC