From 73af89d935df5a8166114c9257f9f247f29850bf Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 26 Apr 2024 18:21:56 +0200 Subject: Migrate from stumpwm to sway and from manifests to home-services. --- .emacs.d/init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 96b81da..a0cb8a0 100755 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3,7 +3,13 @@ ;;; Code: -(setq gc-cons-threshold (* 50 1000 1000)) +;; Minimize garbage collection during startup +(setq gc-cons-threshold most-positive-fixnum) + +;; Lower threshold back to 8 MiB (default is 800kB) +(add-hook 'emacs-startup-hook + (lambda () + (setq gc-cons-threshold (expt 2 23)))) (defvar jd/manifest-list nil @@ -119,7 +125,7 @@ (when jd/exwm-p (require 'jd-exwm)) -(setq gc-cons-threshold (* 2 1000 1000)) +;; (setq gc-cons-threshold (* 2 1000 1000)) ;;; init.el ends here (put 'upcase-region 'disabled nil) -- cgit v1.2.3