-
Notifications
You must be signed in to change notification settings - Fork 0
/
early-init.el
27 lines (22 loc) · 938 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
;;; init/early-init.el --- Visual changes that affect the initial frame -*- lexical-binding: t; -*-
;;; Commentary:
;;
;; This file should only be loaded during the early init and not
;; during regular init. This is only for fundamental visual changes
;; that would otherwise cause Emacs to flicker during startup.
;;; Code:
;; `early-init-file' is set after the early init process, which serves
;; as a clear flag.
(defvar modus-themes-headings)
(unless early-init-file
(setf modus-themes-headings
'((1 . (variable-pitch (height 1.5)))
(2 . (variable-pitch (height 1.3)))
(3 . (variable-pitch (height 1.1)))
(t . (t))))
;; Dark mode
(load-theme 'modus-vivendi t)
;; Maximized (but not its own desktop on Mac)
(add-to-list 'initial-frame-alist '(fullscreen . maximized))
;; No tool-bar (the global tool bar isn't useful)
(add-to-list 'default-frame-alist '(tool-bar-lines . 0)))