aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-12 09:37:36 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-12 09:38:29 -0700
commit338532f19c121026c57d34761d13f8f8d1781fd1 (patch)
tree20b1b9b7ee38ff7f02b6279c1da4a11f82104fc3 /.emacs.d/early-init.el
parent4b327fe7fd1bff0385117d923e0072f9f72049a7 (diff)
emacs: use pure modus themes; avoid initial flash of light
Diffstat (limited to '.emacs.d/early-init.el')
-rw-r--r--.emacs.d/early-init.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/.emacs.d/early-init.el b/.emacs.d/early-init.el
index 495c277..1e13ee8 100644
--- a/.emacs.d/early-init.el
+++ b/.emacs.d/early-init.el
@@ -5,8 +5,8 @@
;; Initialise installed packages
(setq package-enable-at-startup t)
-;; Do not report warning errors
-(setq native-comp-async-report-warnings-errors 'silent)
+;; Do not report warning errors
+(setq native-comp-async-report-warnings-errors 'silent)
;; Truly maximize screen
(setq frame-resize-pixelwise t)
@@ -17,4 +17,14 @@
;; 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