about summary refs log tree commit diff
path: root/config/emacs/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/emacs/early-init.el')
-rw-r--r--config/emacs/early-init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/emacs/early-init.el b/config/emacs/early-init.el
new file mode 100644
index 0000000..8ba547e
--- /dev/null
+++ b/config/emacs/early-init.el
@@ -0,0 +1,9 @@
+;; GC Perfomance Tweaks from DOOM Emacs
+(setq gc-cons-threshold most-positive-fixnum
+      gc-cons-percentage 1.0)
+(add-hook 'emacs-startup-hook
+          (lambda ()
+            (setq gc-cons-threshold (* 128 1024 1024) ;; 128MB
+                  gc-cons-percentage 1.0)))
+
+(setenv "LSP_USE_PLISTS" "true")