-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
executable file
·65 lines (53 loc) · 2.2 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
;;; init.el --- My Emacs configuration
;; Copyright (C) 2014 Mathieu Marques
;; Author: Mathieu Marques <[email protected]>
;; Created: October 16, 2014
;; Homepage: https://github.com/angrybacon/dotemacs
;; Keywords: abbrev, convenience, faces, maint, outlines, vc
;; This program is free software. You can redistribute it and/or modify it under
;; the terms of the Do What The Fuck You Want To Public License, version 2 as
;; published by Sam Hocevar.
;;
;; This program is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
;; FOR A PARTICULAR PURPOSE.
;;
;; You should have received a copy of the Do What The Fuck You Want To Public
;; License along with this program. If not, see http://www.wtfpl.net/.
;;; Commentary:
;; Following lines load an Org file and build the configuration code out of it.
;;; Code:
(let ((gc-cons-threshold most-positive-fixnum))
;; Set repositories
(require 'package)
(setq-default
load-prefer-newer t
package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(package-initialize)
;; Install dependencies
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package t))
(setq-default
use-package-always-defer t
use-package-always-ensure t)
;; Use latest Org
(use-package org :ensure org-plus-contrib)
;; Tangle configuration
(org-babel-load-file (expand-file-name "dotemacs.org" user-emacs-directory))
(garbage-collect))
;;; init.el ends here
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages (quote (org-plus-contrib use-package))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)