Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
;;; init.el --- Patrick Thomson's Emacs setup. -*- lexical-binding: t; -*-
;;; Commentary:
;; This file loads use-package, org-mode, and compiles and executes
;;; Code:
(when (window-system)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-mode -1))
(require 'package)
(add-to-list 'package-archives '("melpa" . "") t)
(add-to-list 'package-archives '("ublt" . "") t)
(add-to-list 'package-archives '("org" . "") t)
(setq package-native-compile t)
(unless (package-installed-p 'use-package)
(message "refreshing contents")
(unless package-archive-contents (package-refresh-contents))
(package-install 'use-package))
(require 'use-package)
(require 'org-install)
(require 'ob-tangle))
(defun reload-config ()
"Reload the literate config from ~/.config/emacs/"
(org-babel-load-file "~/.config/emacs/"))
(setq max-lisp-eval-depth 2000)
(provide 'init)
;;; init.el ends here