Inspired by https://github.com/LionyxML/emacs-solo/blob/main/early-init.el. I am not quite sure whether this will have much effect, though.
19 lines
582 B
EmacsLisp
19 lines
582 B
EmacsLisp
;; -*- lexical-binding: t -*-
|
|
|
|
(setq package-user-dir (expand-file-name "elpa" user-emacs-directory))
|
|
|
|
;; 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.
|
|
|
|
(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)))
|
|
|
|
(setq frame-resize-pixelwise t
|
|
frame-inhibit-implied-resize t)
|