Emacs clean up.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
;;; early-init.el --- Pre-init: GC ceiling and frame chrome -*- lexical-binding: t; -*-
|
||||
|
||||
;;; Commentary:
|
||||
;; Runs before package.el initialises and before the first frame is drawn, so
|
||||
;; it is the only place two things can take effect:
|
||||
;; Runs before package.el initialises and first frame is drawn, the only place these take effect:
|
||||
;; 1. Raising the GC ceiling, so the whole startup (package load + init.el)
|
||||
;; runs without garbage-collection pauses.
|
||||
;; 2. Removing the menu/tool/scroll bars via `default-frame-alist', so they
|
||||
@@ -10,15 +8,6 @@
|
||||
;; them and then removes them, a visible flicker on launch.
|
||||
;;
|
||||
;; Nothing here may depend on a package: none are loaded yet.
|
||||
;;
|
||||
;; IMPORTANT: the GC bump below is only half the pair. Restore a working value
|
||||
;; once startup is done by adding this to init.el:
|
||||
;;
|
||||
;; (add-hook 'emacs-startup-hook
|
||||
;; (lambda () (setq gc-cons-threshold (* 16 1024 1024))))
|
||||
;;
|
||||
;; Without it, GC never runs again and Emacs slowly eats memory.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(startup-redirect-eln-cache (expand-file-name "var/eln-cache/" user-emacs-directory))
|
||||
|
||||
Reference in New Issue
Block a user