forked from patrickt/emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
34 lines (24 loc) · 903 Bytes
/
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
;;; init.el --- Patrick Thomson's Emacs setup. -*- lexical-binding: t; -*-
;;
;;; Commentary:
;; This file loads use-package, org-mode, and compiles and executes readme.org
;;
;;; Code:
(require 'package)
(setq package-enable-at-startup nil)
(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 '("ublt" . "https://elpa.ubolonton.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'org-install)
(require 'ob-tangle)
(defun reload-config ()
"Reload the literate config from ~/.config/emacs/readme.org."
(interactive)
(org-babel-load-file "~/.config/emacs/readme.org"))
(setq max-lisp-eval-depth 2000)
(reload-config)
;;; init.el ends here