-
Notifications
You must be signed in to change notification settings - Fork 2
/
early-init.el
38 lines (26 loc) · 1.3 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
;;; early-init.el --- Early initialization file -*- lexical-binding: t; -*-
;; Author: Zoltán Király <[email protected]>
;; Created: November 10, 2020
;;; Commentary:
;; This file is loaded before the package system and GUI is initialized
;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Early-Init-File.html
;;; Code:
;; Maximize the Emacs frame on startup
(push '(fullscreen . maximized) default-frame-alist)
;; Set default frame size to 1920x1080 pixels
(push '(width . (text-pixels . 1920)) default-frame-alist)
(push '(height . (text-pixels . 1080)) default-frame-alist)
;; Set background color to prevent startup glare
(push '(background-color . "#fff2f3") default-frame-alist)
;; Remove host name from titlebar information
(setq frame-title-format '(multiple-frames "%b" ("" "%b - GNU Emacs")))
;; Turn off mouse interface early in startup to avoid momentary display
(push '(menu-bar-lines . 0) default-frame-alist)
(push '(tool-bar-lines . 0) default-frame-alist)
(push '(vertical-scroll-bars) default-frame-alist)
;; Suppress the "package cl is deprecated" warning
(setq byte-compile-warnings '(cl-functions))
;; Suppress warnings and errors during asynchronous native compilation
(when (native-comp-available-p)
(setq native-comp-async-report-warnings-errors nil))
;;; early-init.el ends here