2020-01-06 18:45:26 +00:00
|
|
|
;;; -*- lexical-binding: t; -*-
|
|
|
|
|
2020-01-07 20:07:05 +00:00
|
|
|
;; This file is meant to bootstrap ~/init.org, which tangles itself to ~/.emacs.el.
|
|
|
|
;; Once init.org has been tangled for the first time, ~/.emacs.el should take
|
|
|
|
;; precedence over this file so it will no longer get loaded.
|
|
|
|
|
|
|
|
(message "Bootstrapping init file...")
|
|
|
|
|
|
|
|
(defvar bootstrapping-init t)
|
2020-01-06 18:45:26 +00:00
|
|
|
(defvar bootstrap-version)
|
|
|
|
(let ((bootstrap-file
|
|
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
|
|
|
(bootstrap-version 5))
|
|
|
|
(unless (file-exists-p bootstrap-file)
|
|
|
|
(with-current-buffer
|
|
|
|
(url-retrieve-synchronously
|
|
|
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
|
|
|
'silent 'inhibit-cookies)
|
|
|
|
(goto-char (point-max))
|
|
|
|
(eval-print-last-sexp)))
|
|
|
|
(load bootstrap-file nil 'nomessage))
|
|
|
|
|
|
|
|
(straight-use-package 'org-plus-contrib)
|
2019-01-28 03:22:00 +00:00
|
|
|
(require 'org)
|
2020-01-07 20:07:05 +00:00
|
|
|
|
|
|
|
(org-babel-tangle-file
|
|
|
|
(expand-file-name "~/init.org")
|
|
|
|
(expand-file-name "~/.emacs.el"))
|
|
|
|
(load-file (expand-file-name "~/.emacs.el"))
|