From d670eedb47a78430429ddf7f3adc5261704c83ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Tue, 15 Oct 2024 22:02:20 -0700 Subject: emacs: get started with emacs literate config --- .emacs.d/early-init.el | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to '.emacs.d/early-init.el') 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) -- cgit v1.2.3