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.

50 lines
1.2 KiB

  1. ;; Garbage collection threshold
  2. ;; higher means less interuptions
  3. (setq gc-cons-threshold 400000000)
  4. ;; Begin initialization
  5. ;; Turn off mouse interface early in startup to avoid momentary display
  6. (when window-system
  7. (menu-bar-mode -1)
  8. (tool-bar-mode -1)
  9. (scroll-bar-mode -1)
  10. (tooltip-mode -1)
  11. )
  12. (setq inhibit-startup-message t)
  13. (setq initial-scratch-message "")
  14. ;; Setup package
  15. (require 'package)
  16. (add-to-list 'package-archives
  17. '("melpa" . "http://melpa.org/packages/") t)
  18. (add-to-list 'package-archives
  19. '("org" . "http://orgmode.org/elpa/") t)
  20. (when (boundp 'package-pinned-packages)
  21. (setq package-pinned-packages
  22. '((org-plus-contrib . "org"))
  23. )
  24. )
  25. (package-initialize)
  26. ;; Bootstrap use-package
  27. ;; Install use-package if it's not already installed
  28. ;; use-package is used to configure the rest of the packages
  29. (unless (package-installed-p 'use-package)
  30. (package-refresh-contents)
  31. (package-install 'use-package)
  32. )
  33. ;; From use-package README
  34. (eval-when-compile
  35. (require 'use-package))
  36. (require 'diminish)
  37. ;;use-package needs this
  38. (require 'bind-key)
  39. ;; Load the config
  40. (org-babel-load-file (concat user-emacs-directory "config.org"))
  41. (setq gc-cons-threshold 800000)