dotfiles/emacs/.emacs.d/init.el

30 lines
1014 B
EmacsLisp

;;; -*- lexical-binding: t; -*-
;; 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)
(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)
(require 'org)
(org-babel-tangle-file
(expand-file-name "~/init.org")
(expand-file-name "~/.emacs.el"))
(load-file (expand-file-name "~/.emacs.el"))