From b9cb7037b581f1ea35d0948c9c27b0d28fdd06ef Mon Sep 17 00:00:00 2001 From: fpi Date: Thu, 21 Jan 2021 16:00:07 +0100 Subject: Add garbage collection settings --- emacs-init.org | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/emacs-init.org b/emacs-init.org index e4e08c4..c4b3f3b 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -12,6 +12,7 @@ - [[#font][Font]] - [[#theme--faces][Theme & Faces]] - [[#user-info][User info]] + - [[#garbage-collection][Garbage collection]] - [[#desktop-module][Desktop module]] - [[#customize][Customize]] - [[#file-and-input-history][File and input history]] @@ -1670,7 +1671,15 @@ Set ~user-full-name~ and ~user-mail-address~. These are set in (setq user-full-name private/user-full-name user-mail-address private/user-mail-address) #+end_src - +** Garbage collection +Give a message when Emacs does garbage collection and increase the thresholds for triggering it. +#+begin_src emacs-lisp +(use-package emacs + :custom + (garbage-collection-messages t) + (gc-cons-threshold 800000000) + (gc-cons-percentage 0.3)) +#+end_src ** Desktop module This saves the state emacs was in. #+begin_src emacs-lisp -- cgit v1.2.3