aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/early-init.el')
-rw-r--r--.emacs.d/early-init.el30
1 files changed, 13 insertions, 17 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el
index 1e13ee8..28ecb98 100644
--- a/.emacs.d/early-init.el
+++ b/.emacs.d/early-init.el
@@ -1,30 +1,26 @@
+;; I don't use any of these
(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)
+;; Avoid initial flash of light.
+;; 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)
-;; Truly maximize screen
+;; Do not resize when font size changes
(setq frame-resize-pixelwise t)
-;; Start maximized
+;; By default, 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)
+;; Initialise installed packages, otherwise, basic functions are not
+;; available during the initialization stage.
+(setq package-enable-at-startup t)
-;;; early-init.el ends here
+;; Do not report warnings. It's too noisy.
+(setq native-comp-async-report-warnings-errors 'silent)
nihil fit ex nihilo