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.

33 lines
1.0 KiB

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