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.

55 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" . "https://orgmode.org/elpa/") t)
  24. (package-initialize)
  25. ;; Bootstrap use-package
  26. ;; Install use-package if it's not already installed
  27. ;; use-package is used to configure the rest of the packages
  28. (unless (package-installed-p 'use-package)
  29. (package-refresh-contents)
  30. (package-install 'use-package)
  31. )
  32. (setq use-package-verbose nil)
  33. ;; From use-package README
  34. (eval-when-compile
  35. (require 'use-package))
  36. ;; see https://github.com/jwiegley/use-package/issues/522
  37. (use-package diminish
  38. :ensure t)
  39. (use-package org
  40. :ensure org-plus-contrib
  41. :pin org)
  42. ;; Load the config
  43. (org-babel-load-file (concat user-emacs-directory "config.org"))
  44. (setq gc-cons-threshold 800000)