aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/early-init.el
blob: 1e13ee8845829f562fdd074b0a5dd63f1ff908f4 (plain)
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
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)

;; Initialise installed packages
(setq package-enable-at-startup t)

;; Do not report warning errors
(setq native-comp-async-report-warnings-errors 'silent)

;; Truly maximize screen
(setq frame-resize-pixelwise t)

;; Start maximized
(add-to-list 'default-frame-alist '(fullscreen . maximized))

;; No need for titlebar
(modify-frame-parameters nil '((undecorated . t)))

(defun rul-emacs-avoid-initial-flash-of-light ()
  "Avoid flash of light when starting Emacs. Inspired on
  prot-emacs-avoid-initial-flash-of-light."
    (setq mode-line-format nil)
    (set-face-attribute 'default nil :background "#000000" :foreground "#ffffff")
    (set-face-attribute 'mode-line nil :background "#000000" :foreground "#ffffff" :box 'unspecified)
    )

(rul-emacs-avoid-initial-flash-of-light)

;;; early-init.el ends here
nihil fit ex nihilo