-
Notifications
You must be signed in to change notification settings - Fork 1
/
early-init.el
executable file
·44 lines (37 loc) · 1.29 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;;; early-init.el --- Early initialization. -*- lexical-binding: t -*-
;;; Commentary:
;;
;; Emacs 27 introduces early-init.el, which is run before init.el,
;; before package and UI initialization happens.
;;
;;; Code:
;; speed up
(setq gc-cons-threshold most-positive-fixnum
load-prefer-newer noninteractive
frame-inhibit-implied-resize t
package-enable-at-startup nil
auto-mode-case-fold nil
idle-update-delay 1.0
inhibit-compacting-font-caches t
redisplay-skip-fontification-on-input t
;; startup
inhibit-startup-screen t
inhibit-startup-echo-area-message t
initial-scratch-message nil)
;; use package
(setq use-package-always-defer t
use-package-expand-minimally t)
;; user interface
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
(push '(fullscreen . maximized) initial-frame-alist)
(push '(undecorated . t) initial-frame-alist)
(setq-default mode-line-format nil)
;; user directory
(setq user-emacs-directory (expand-file-name "~/.cache/emacs/"))
;; native compilation
(setq native-comp-speed 2
native-comp-async-query-on-exit t
;; native-comp-jit-compilation nil
native-comp-async-report-warnings-errors nil)