My attempt to optimize my emacs load time <1 second
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
998 B

;; -*- lexical-binding: t; -*-
;;; custom-early-init --- Provide early init vars
(defvar file-name-handler-alist-old file-name-handler-alist)
(defvar personal-keybindings nil
"List of bindings performed by `bind-key'.
Elements have the form ((KEY . [MAP]) CMD ORIGINAL-CMD)")
(setq file-name-handler-alist nil
message-log-max 16384
gc-cons-threshold 402653184
gc-cons-percentage 0.6
auto-window-vscroll nil)
(setq safe-local-variable-values (quote (
(eval org-content 2)
(whitespace-line-column . 120)
)))
(setq custom-file (concat user-emacs-directory "lisp/unused.el"))
(add-hook 'after-init-hook
`(lambda ()
(setq file-name-handler-alist file-name-handler-alist-old
gc-cons-threshold 800000
gc-cons-percentage 0.1)
(garbage-collect)) t)
(provide 'custom-early-init)