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.

35 lines
1.1 KiB

5 years ago
  1. ;;; 01-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. gc-cons-threshold 402653184
  10. gc-cons-percentage 0.6
  11. auto-window-vscroll nil)
  12. (setq safe-local-variable-values (quote (
  13. (visual-line-mode . 1)
  14. (eval org-content 2)
  15. (eval org-content 3)
  16. (whitespace-line-column . 120)
  17. )))
  18. (setq custom-file (concat user-emacs-directory "lisp/unused.el"))
  19. (add-hook 'after-init-hook
  20. `(lambda ()
  21. (setq file-name-handler-alist file-name-handler-alist-old
  22. gc-cons-threshold 100000000
  23. gc-cons-percentage 0.1
  24. )
  25. (garbage-collect)) t)
  26. (provide '01-custom-early-init)
  27. ;;; 01-custom-early-init.el ends here