-
Notifications
You must be signed in to change notification settings - Fork 16
/
init.el
49 lines (32 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
(require 'package)
(setq package-enable-at-startup nil)
;; using online archives on OSx
(when (eq system-type 'darwin)
; (setq package-archives
; '(("melpa" . "https://melpa.org/packages/")
; ("org" . "http://orgmode.org/elpa/")
; ("gnu" . "https://elpa.gnu.org/packages/")))
(setq package-archives '(("melpa" . "~/.emacs.d/mirror-elpa/melpa/")
("org" . "~/.emacs.d/mirror-elpa/org/")
("gnu" . "~/.emacs.d/mirror-elpa/gnu/")))
)
;; using ninrod's thin-elpa-mirror
(when (eq system-type 'gnu/linux)
;; using thin mirror
;; (setq package-archives '(("melpa" . "~/.emacs.d/lisp/ninrod/thin-melpa-mirror")))
;; using elpa-clone (fat mirror)
(setq package-archives '(("melpa" . "~/.emacs.d/mirror-elpa/melpa/")
("org" . "~/.emacs.d/mirror-elpa/org/")
("gnu" . "~/.emacs.d/mirror-elpa/gnu/")))
)
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; fetch latest version of `org-mode'
(use-package org
:ensure org-plus-contrib
:defer 7)
;; org-babel-load my config which is written in `org-mode' format
(org-babel-load-file (expand-file-name "~/.emacs.d/boot.org"))