-
Notifications
You must be signed in to change notification settings - Fork 2
/
early-init.el
57 lines (44 loc) · 1.8 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
45
46
47
48
49
50
51
52
53
54
55
56
57
;; -*- lexical-binding: t; -*-
;; Garbage collection threshold, faster startup.
(setq gc-cons-threshold (* 384 1024 1024)
gc-cons-percentage 0.6)
(when (< emacs-major-version 29)
;; Same for mode-line (hide it).
(with-eval-after-load 'faces
(let ((line (face-attribute 'mode-line :underline)))
(set-face-attribute 'mode-line nil
:background "#212121"
:foreground "#212121"
:overline line
:box nil)
(set-face-attribute 'mode-line-inactive nil
:overline line
:underline line
:box nil))))
;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L200
(unless (daemonp)
(advice-add #'display-startup-echo-area-message :override #'ignore))
;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L323
(setq frame-inhibit-implied-resize t)
;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L331
(setq inhibit-compacting-font-caches t)
;; https://github.com/hlissner/doom-emacs/blob/58af4aef56469f3f495129b4e7d947553f420fca/core/core.el#L205
(setq idle-update-delay 1.0)
;; Don't want a mode line while loading init.
(setq mode-line-format nil)
;; No scrollbar by default.
(when (fboundp 'scroll-bar-mode)
(scroll-bar-mode -1))
;; No nenubar by default.
(when (fboundp 'menu-bar-mode)
(menu-bar-mode -1))
;; No toolbar by default.
(when (fboundp 'tool-bar-mode)
(tool-bar-mode -1))
;; No tooltip by default.
(when (fboundp 'tooltip-mode)
(tooltip-mode -1))
;; No Alarms by default.
(setq ring-bell-function 'ignore)
(setq initial-scratch-message nil)
(setq inhibit-startup-screen t)