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

;; Garbage collection threshold
;; higher means less interuptions
(setq gc-cons-threshold 400000000)
;; Begin initialization
;; Turn off mouse interface early in startup to avoid momentary display
(when window-system
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-mode -1)
)
(setq inhibit-startup-message t)
(setq initial-scratch-message "")
;; Setup package
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
(add-to-list 'package-archives
'("gnu" . "https://elpa.gnu.org/packages/") t)
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(when (boundp 'package-pinned-packages)
(setq package-pinned-packages
'((org-plus-contrib . "org"))
)
)
(package-initialize)
;; Bootstrap use-package
;; Install use-package if it's not already installed
;; use-package is used to configure the rest of the packages
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package)
)
;; From use-package README
(eval-when-compile
(require 'use-package))
(require 'diminish)
;;use-package needs this
(require 'bind-key)
;; Load the config
(org-babel-load-file (concat user-emacs-directory "config.org"))
(setq gc-cons-threshold 800000)