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.

54 lines
1.4 KiB

6 years ago
  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" . "https://melpa.org/packages/") t)
  18. (add-to-list 'package-archives
  19. '("melpa-stable" . "https://stable.melpa.org/packages/") t)
  20. (add-to-list 'package-archives
  21. '("gnu" . "https://elpa.gnu.org/packages/") t)
  22. (add-to-list 'package-archives
  23. '("org" . "http://orgmode.org/elpa/") t)
  24. (when (boundp 'package-pinned-packages)
  25. (setq package-pinned-packages
  26. '((org-plus-contrib . "org"))
  27. )
  28. )
  29. (package-initialize)
  30. ;; Bootstrap use-package
  31. ;; Install use-package if it's not already installed
  32. ;; use-package is used to configure the rest of the packages
  33. (unless (package-installed-p 'use-package)
  34. (package-refresh-contents)
  35. (package-install 'use-package)
  36. )
  37. ;; From use-package README
  38. (eval-when-compile
  39. (require 'use-package))
  40. (require 'diminish)
  41. ;;use-package needs this
  42. (require 'bind-key)
  43. ;; Load the config
  44. (org-babel-load-file (concat user-emacs-directory "config.org"))
  45. (setq gc-cons-threshold 800000)