Emacs: slow-computer is in basics/global-variables.

This commit is contained in:
tastytea 2020-02-26 23:31:33 +01:00
parent c9b66392ab
commit 3bc8ad73ac
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; init.el --- tastytea's Emacs init file. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-02-26T23:30:13+0100>
;; Time-stamp: <2020-02-26T23:31:10+0100>
;;; Commentary:
;; Requires at least Emacs 26. Most of it will probably work with Emacs 24 and
@ -11,14 +11,15 @@
;; Add path to init files.
(push (concat user-emacs-directory "init.d") load-path)
(require 'basics/package-management)
(require 'basics/global-variables)
;; 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)))
(require 'basics/package-management)
(require 'basics/global-variables)
(require 'basics/misc)
(require 'basics/input)
(require 'basics/buffers)