aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/early-init.el
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-15 22:02:20 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-15 22:02:20 -0700
commitd670eedb47a78430429ddf7f3adc5261704c83ec (patch)
tree9e12e98703ed0704339e8d1b45ae4d6a1454c2a5 /.emacs.d/early-init.el
parent1efead94f88950a4277191a23532fe28597cd383 (diff)
emacs: get started with emacs literate config
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