From 8cbf2501f432b76d70404e7c24ed5e373ffbb7df Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Sun, 27 May 2018 18:24:33 +0200 Subject: [PATCH] added performance settings for windows --- config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config.org b/config.org index cf19be7..5726901 100644 --- a/config.org +++ b/config.org @@ -112,6 +112,20 @@ ("work_hyperv" (add-to-list 'initial-frame-alist '(fullscreen . maximized))))) #+END_SRC +* Windows specific stuff +** Performance + [[https://github.com/cbowdon/Config/blob/master/emacs/init.org][Got it from here]] +#+BEGIN_SRC emacs-lisp +(when (eq system-type 'windows-nt) + (if (>= emacs-major-version 25) + (remove-hook 'find-file-hooks 'vc-refresh-state) + (remove-hook 'find-file-hooks 'vc-find-file-hook)) + (progn + (setq gc-cons-threshold (* 511 1024 1024) + gc-cons-percentage 0.5 + garbage-collection-messages t) + (run-with-idle-timer 5 t #'garbage-collect))) +#+END_SRC * Visuals ** Font Don't add the font in the work environment, which I am logged in as POH