From 338532f19c121026c57d34761d13f8f8d1781fd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 12 Oct 2024 09:37:36 -0700 Subject: emacs: use pure modus themes; avoid initial flash of light --- .emacs.d/early-init.el | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to '.emacs.d/early-init.el') 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 -- cgit v1.2.3