From b35e64f96632f575ba1eff75b5775c5904fe366a Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 22 Mar 2019 02:55:59 +0100 Subject: [PATCH] Set garbage collection threshold to 20 MiB for slow computers. Only temporarily, to speed up initialization. --- init.el | 16 ++++++++++------ server/server | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 63d6ba4..7ab4ab4 100644 --- a/init.el +++ b/init.el @@ -1,16 +1,11 @@ ;;; init.el --- tastytea's Emacs init file. -;;; Time-stamp: <2019-03-22 01:57:36 CET> +;;; Time-stamp: <2019-03-22 02:55:57 CET> ;;; Commentary: ;;; I am using this file with Emacs 26, but most of it will probably work with ;;; Emacs 24 and above. ;;; Code: - -;; Set garbage collection threshold to 100 MiB to speed up init -;; It is reset at the end of the file -(setq gc-cons-threshold (* 100 1024 1024)) - ;;;;;;;;;;;;;;;;;;;; Packages ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'package) ;; (add-to-list 'package-archives @@ -62,6 +57,12 @@ (setq slow-computer t)) ; localhost is schnibble ;;;;;;;;;;;;;;;;;;;; Configure some essential things ;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Set garbage collection threshold to 100 MiB (or 20 MiB) to speed up init +;; It is reset at the end of the file +(if slow-computer + (setq gc-cons-threshold (* 20 1024 1024)) + (setq gc-cons-threshold (* 100 1024 1024))) + ;; Accelerate startup by not printing so much (setf inhibit-startup-screen t inhibit-startup-echo-area-message t @@ -128,6 +129,9 @@ ;; Paste text where the cursor is, not where the mouse is. (setq mouse-yank-at-point t) +;; Put scrollbar to ther ight side +(set-scroll-bar-mode 'right) + ;;;;;;;;;;;;;;;;;;;; Keybindings ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Scroll in other window (global-set-key (kbd "S-") 'scroll-other-window-down) diff --git a/server/server b/server/server index bf54931..62605db 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 17682 +127.0.0.1:51313 32580 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file