-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
37 lines (32 loc) · 1.18 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
;; Keep init.el clean from customizations
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
;; Load default package manager
(require 'package)
;; Add package repositories
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
(add-to-list 'package-archives '("elpy" . "http://jorgenschaefer.github.io/packages/"))
(package-initialize)
;; Bootstrap use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; Compile and evaluate use-package
(eval-when-compile
(require 'use-package))
(require 'bind-key) ;; For :bind
;; Load org-plug-contrib with use-package
(use-package org
:ensure org-plus-contrib
:pin org
:init
;; Remaining configuration is loaded from org file
(org-babel-load-file
(expand-file-name "emacs-init.org"
user-emacs-directory)
)
)