2020-08-15 16:49:32 +02:00
|
|
|
;; -*- lexical-binding: t -*-
|
|
|
|
|
|
|
|
(setq package-user-dir (expand-file-name "elpa" user-emacs-directory))
|
|
|
|
|
2024-03-10 11:14:48 +01:00
|
|
|
;; From https://protesilaos.com/emacs/dotemacs: temporarily increase the GC
|
|
|
|
;; threshold on startup to speed up booting. Reenable GC limits as soon as
|
|
|
|
;; Emacs is started.
|
2021-03-28 19:55:59 +02:00
|
|
|
|
2024-03-10 11:14:48 +01:00
|
|
|
(setq gc-cons-threshold most-positive-fixnum
|
|
|
|
gc-cons-percentage 0.5)
|
|
|
|
|
|
|
|
(add-hook 'emacs-startup-hook
|
|
|
|
(lambda ()
|
|
|
|
(setq gc-cons-threshold (* 100 1024 1024) ; 100mb
|
|
|
|
gc-cons-percentage 0.1)))
|