-
Notifications
You must be signed in to change notification settings - Fork 22
/
init.el
executable file
·38 lines (33 loc) · 1.14 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; 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 "")
;;; Set up package
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.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 (or (package-installed-p 'use-package)
(package-installed-p 'diminish))
(package-refresh-contents)
(package-install 'use-package)
(package-install 'diminish))
;; From use-package README
(eval-when-compile
(require 'use-package))
(require 'diminish) ;; if you use :diminish
(require 'bind-key)
;;; Load the config
(org-babel-load-file (concat user-emacs-directory "config.org"))