summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-12-09 17:01:29 +0100
committerAlan Pearce2015-12-09 17:01:29 +0100
commit260fad2ed071931265d3919faa3d429e06103e2c (patch)
tree3d16f18fae4184bcc4a33fdd612c1a6921d8236b /tag-emacs
parentb51f0140be39ee5efb670e5a38fb35226d57fb2f (diff)
downloaddotfiles-260fad2ed071931265d3919faa3d429e06103e2c.tar.lz
dotfiles-260fad2ed071931265d3919faa3d429e06103e2c.tar.zst
dotfiles-260fad2ed071931265d3919faa3d429e06103e2c.zip
Emacs: Disable magic filename handling on startup
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.org8
1 files changed, 7 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index afe2681..39ae514 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -11,6 +11,7 @@ Open Emacs with just a plain window. No graphics or messages, please!
   (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 @@ Start a server if possible.  A daemon is already a server.
                                      (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