forked from jkitchin/scimax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
early-init.el
27 lines (20 loc) · 902 Bytes
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;;; early-init.el --- Where early initialization files can be loaded before the gui
;;
;; Not using this file now but could use later possibly
(add-to-list 'default-frame-alist '(undecorated . t))
;; scimax does some of the below so not sure if necessary
(defvar default-gc-cons-threshold 16777216 ; 16mb
"my default desired value of `gc-cons-threshold'
during normal emacs operations.")
;; make garbage collector less invasive
(setq gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.6)
(setq default-file-name-handler-alist file-name-handler-alist
file-name-handler-alist nil)
(add-hook 'emacs-startup-hook
(lambda (&rest _)
(setq gc-cons-threshold default-gc-cons-threshold
gc-cons-percentage 0.1
file-name-handler-alist default-file-name-handler-alist)
;; delete no longer necessary startup variable
(makunbound 'default-file-name-handler-alist)))