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.

36 lines
1.2 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 1)
  15. (eval org-content 2)
  16. (eval org-content 3)
  17. (whitespace-line-column . 120)
  18. )))
  19. (setq custom-file (concat user-emacs-directory "lisp/unused.el"))
  20. (add-hook 'after-init-hook
  21. `(lambda ()
  22. (setq file-name-handler-alist file-name-handler-alist-old
  23. gc-cons-threshold 100000000
  24. gc-cons-percentage 0.1
  25. )
  26. (garbage-collect)) t)
  27. (provide '01-custom-early-init)
  28. ;;; 01-custom-early-init.el ends here