-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathinit.el
40 lines (33 loc) · 1.08 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
;;; 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:
(when (window-system)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-mode -1))
(when (eq system-type 'darwin)
(setq ns-auto-hide-menu-bar t))
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("ublt" . "https://elpa.ubolonton.org/packages/") t)
(setq package-native-compile t)
(setq use-package-always-ensure t)
(unless (package-installed-p 'use-package)
(message "refreshing contents")
(unless package-archive-contents (package-refresh-contents))
(package-install 'use-package))
(eval-when-compile
(require '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)
(provide 'init)
;;; init.el ends here