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.

57 lines
1.6 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. ;; versuib 2018.03.11.2137 had troubles finding packages,
  34. ;; so stick with stable 2.3
  35. (push '(use-package . "melpa-stable") package-pinned-packages)
  36. (unless (package-installed-p 'use-package)
  37. (package-refresh-contents)
  38. (package-install 'use-package)
  39. )
  40. ;; From use-package README
  41. (eval-when-compile
  42. (require 'use-package))
  43. (require 'diminish)
  44. ;;use-package needs this
  45. (require 'bind-key)
  46. ;; Load the config
  47. (org-babel-load-file (concat user-emacs-directory "config.org"))
  48. (setq gc-cons-threshold 800000)