aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config/emacs/init.el
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-06-27 02:27:08 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-06-27 15:09:44 +0100
commit058b4fa959423930a78b858433be89a96156c580 (patch)
treea6a15e0c2c42a729db5e3b3a2a319a54f9872349 /Emacs/.config/emacs/init.el
parentb6aa018bd752be5d639568a9398abf8b2bdcc8fe (diff)
downloaddotfiles-058b4fa959423930a78b858433be89a96156c580.tar.gz
dotfiles-058b4fa959423930a78b858433be89a96156c580.tar.bz2
dotfiles-058b4fa959423930a78b858433be89a96156c580.zip
(Emacs/*)~Shamelessly stole some optimisations from doom
Cut my boot time by 0.2s?!
Diffstat (limited to 'Emacs/.config/emacs/init.el')
-rw-r--r--Emacs/.config/emacs/init.el9
1 files changed, 4 insertions, 5 deletions
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 <https://www.gnu.org/licenses/>.
;;; 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