summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 96e089dc..c24b4311 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1,5 +1,6 @@
 ;;; init --- user init file  -*- lexical-binding: t; -*-
 (eval '(setq inhibit-startup-echo-area-message "alan"))
+(defvar default-file-name-handler-alist file-name-handler-alist)
 (setq gc-cons-threshold most-positive-fixnum
       gc-cons-percentage 0.6
       file-name-handler-alist nil)
@@ -12,7 +13,6 @@
 (add-hook 'minibuffer-exit-hook #'set-default-gc-cons)
 (add-hook 'after-init-hook #'set-default-gc-cons)
 
-(defvar default-file-name-handler-alist file-name-handler-alist)
 (defun restore-file-name-handler-alist ()
   (setq file-name-handler-alist default-file-name-handler-alist))
 (add-hook 'emacs-startup-hook #'restore-file-name-handler-alist)