summaryrefslogtreecommitdiff
path: root/.config/emacs/early-init.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-12-13 23:43:10 -0500
committerbdunahu <bdunahu@operationnull.com>2026-01-03 21:46:06 -0700
commit288ccb3984c7cb46b67d0f6bf7fb6d53c5d7a2d3 (patch)
tree47091f5aeede90e1364546e8122cd55e6d7f2971 /.config/emacs/early-init.el
parentdf14036eb22ff9326c2806eb3f8cafc0d3042efa (diff)
guix: full refactor of configuration structure
Diffstat (limited to '.config/emacs/early-init.el')
-rw-r--r--.config/emacs/early-init.el38
1 files changed, 0 insertions, 38 deletions
diff --git a/.config/emacs/early-init.el b/.config/emacs/early-init.el
deleted file mode 100644
index 037dc17..0000000
--- a/.config/emacs/early-init.el
+++ /dev/null
@@ -1,38 +0,0 @@
-;;; -*- lexical-binding: t; -*-
-;;; Commentary:
-;;; Code:
-
-
-;;;; display load information + speedups
-(defun bd/display-startup-time ()
- (message "Emacs loaded in %s with %d garbage collections."
- (format "%.2f seconds"
- (float-time
- (time-subtract after-init-time before-init-time)))
- gcs-done))
-
-(add-hook 'emacs-startup-hook #'bd/display-startup-time)
-
-(setq frame-inhibit-implied-resize t)
-
-;; reduce the frequency of garbage collection during startup
-;; by making it happen as little as possible
-;; TODO: `most-positive-fixnum' will pressure system memory if used
-;; as a permanent value
-(setopt gc-cons-threshold most-positive-fixnum
- gc-cons-percentage 0.5)
-
-(add-hook 'emacs-startup-hook
- (lambda ()
- (setopt gc-cons-threshold (* 1024 1024 20)
- gc-cons-percentage 0.2)))
-
-
-;;;; avoid-blinding startup
-(push '(menu-bar-lines . 0) default-frame-alist)
-(push '(tool-bar-lines . 0) default-frame-alist)
-(push '(background-color . "#000000") default-frame-alist)
-(push '(foreground-color . "#ffffff") default-frame-alist)
-
-
-;;; early-init.el ends here