-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathearly-init.el
More file actions
23 lines (17 loc) · 809 Bytes
/
Copy pathearly-init.el
File metadata and controls
23 lines (17 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;;; early-init.el --- Emacs 27+ pre-initialisation config -*- lexical-binding: t; -*-
;;; Commentary:
;;; Code:
;; Defer garbage collection further back in the startup process
(setq gc-cons-threshold most-positive-fixnum)
;; Faster to disable these here (before they've been initialized)
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
;; Resizing the Emacs frame can be a terribly expensive part of changing the
;; font. By inhibiting this, we easily halve startup times with fonts that are
;; larger than the system default.
(setq frame-inhibit-implied-resize t)
(setq gc-cons-threshold (* 100 1024 1024)
read-process-output-max (* 1024 1024))
(provide 'early-init)
;;; early-init.el ends here