-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
27 lines (20 loc) · 868 Bytes
/
early-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;;; early-init.el --- Early init load config for Emacs -*- lexical-binding: t -*-
;; Author: Pratik Abhyankar
;; Maintainer: Pratik Abhyankar
;; Version: 1.0
;; Package-Requires: (dependencies)
;; Homepage: homepage
;; Keywords: early-init, early-init.el
;;; Commentary:
;; Loads the early-init config for Emacs. Primarily used to disable package.el
;; since the config uses straigh.el to manage Emacs packages.
;;; Code:
;; Disable the built in package.el package manager. The config will use straight.el instead.
(setq package-enable-at-startup nil)
(let ((normal-gc-cons-threshold (* 20 1024 1024))
(init-gc-cons-threshold (* 128 1024 1024)))
(setq gc-cons-threshold init-gc-cons-threshold)
(add-hook 'emacs-startup-hook
(lambda () (setq gc-cons-threshold normal-gc-cons-threshold))))
(provide 'early-init)
;;; early-init.el ends here.