From a730d2a27248721b11d0768c8bb54551c6edd027 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sat, 28 May 2016 21:46:36 -0500 Subject: [PATCH] Speed up emacs gc --- emacs.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/emacs.org b/emacs.org index 6cf89ca..b6ac390 100644 --- a/emacs.org +++ b/emacs.org @@ -38,6 +38,19 @@ Add in the standard package archive urls. (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t) #+END_SRC +*** emacs gc speedup + +#+BEGIN_SRC emacs-lisp + (defun my-minibuffer-setup-hook () + (setq gc-cons-threshold most-positive-fixnum)) + + (defun my-minibuffer-exit-hook () + (setq gc-cons-threshold 8000000)) + + (add-hook 'minibuffer-setup-hook #'my-minibuffer-setup-hook) + (add-hook 'minibuffer-exit-hook #'my-minibuffer-exit-hook) +#+END_SRC + *** use-package bootstrap This configuration is using *use-package* extensively. Install it straight away.