Add startup optimizations
This commit is contained in:
parent
8dde9d65dc
commit
37ecaec0d8
@ -1,5 +1,15 @@
|
||||
(setq lexical-binding t)
|
||||
(setq gc-cons-threshold 100000000)
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
;; Some startup time optimizations stolen from Doom emacs
|
||||
(setq gc-cons-threshold most-positive-fixnum ; 2^61 bytes
|
||||
gc-cons-percentage 0.6)
|
||||
(defvar file-name-handler-alist-backup file-name-handler-alist)
|
||||
(setq file-name-handler-alist nil)
|
||||
(add-hook 'emacs-startup-hook
|
||||
(lambda ()
|
||||
(setq gc-cons-threshold 16777216 ; 16mb
|
||||
gc-cons-percentage 0.1
|
||||
file-name-handler-alist file-name-handler-alist-backup)))
|
||||
|
||||
;; Bootstrap the straight.el package manager
|
||||
(defvar bootstrap-version)
|
||||
|
Loading…
Reference in New Issue
Block a user