From 058b4fa959423930a78b858433be89a96156c580 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 27 Jun 2024 02:27:08 +0100 Subject: (Emacs/*)~Shamelessly stole some optimisations from doom Cut my boot time by 0.2s?! --- Emacs/.config/emacs/init.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Emacs/.config/emacs/init.el') diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el index 828402f..98cba9f 100644 --- a/Emacs/.config/emacs/init.el +++ b/Emacs/.config/emacs/init.el @@ -18,13 +18,11 @@ ;; along with this program. If not, see . ;;; Commentary: -;; Sets up straight, use package and the literate system. +;; Sets up straight, use-package and no-littering then loads the literate +;; system to get my actual configuration. ;;; Code: -;; Before doing anything else, make gc-cons-threshold ridiculously -;; high. This makes it so we have as few pauses during init as -;; possible. -;; Straight +;;; Setup straight (setq straight-disable-native-compile nil straight-use-package-by-default nil straight-check-for-modifications 'live) @@ -82,6 +80,7 @@ (require 'eglot)) (setq gc-cons-threshold (* 100 1024 1024) ; ~100MiB + gc-cons-percentage 0.1 ; 10% of heap allocation => collect garbage read-process-output-max (* 5 1024 1024) ; ~5MiB ;; FIXME: Problem with memory-report after running Emacs for a ;; bit, causes a Lisp nesting error, so I just set it up really -- cgit v1.2.3-13-gbd6f