From e3e9ab077a8fcdb6c49678a548c2785dbe736718 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Tue, 30 Jan 2024 16:50:01 +0100 Subject: Use emacs-gcmh to optimise garbage collection --- tw/home/files/emacs-init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tw/home/files/emacs-init.el') diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el index 38eb358c..4e405cf5 100644 --- a/tw/home/files/emacs-init.el +++ b/tw/home/files/emacs-init.el @@ -121,6 +121,12 @@ If CREATE is true and the resulting directory does not exist, create it." ;; Some packages below have `:commands (...) :demand t'. ;; We need :commands for the byte-compiler, but we want to load the package immediately. +(use-package gcmh ; "garbage collector magic hack": run GC when not in focus + :config (gcmh-mode +1) + :custom + (gcmh-verbose t "Show an informative message when garbage collecting.") + :diminish gcmh-mode) + ;; Look and feel (set-face-attribute 'default nil :family "Hermit" :height 100) ;; For some reason, Emacs doesn't detect italic support, and falls back to -- cgit v1.2.3