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

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