summary refs log tree commit diff stats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index ffde904a..fb5a75ed 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -17,6 +17,10 @@
 (setq gc-cons-threshold 100000000)
 (defvar file-name-handler-alist-backup file-name-handler-alist)
 (setq file-name-handler-alist nil)
+(add-hook 'after-init-hook
+          #'(lambda ()
+              (setq gc-cons-threshold 800000
+                    file-name-handler-alist file-name-handler-alist-backup)))
 (remove-hook 'find-file-hooks #'vc-refresh-state)
 ;; #+END_SRC
 
@@ -2822,8 +2826,6 @@
   :if (not (daemonp))
   :config (unless (server-running-p server-name)
             (server-start)))
-(setq gc-cons-threshold 800000
-      file-name-handler-alist file-name-handler-alist-backup)
 ;; #+END_SRC
 
 ;; Local Variables: