36 lines
1.3 KiB
EmacsLisp
36 lines
1.3 KiB
EmacsLisp
;;; init.el --- Where all the magic begins
|
|
;;
|
|
;; This file loads Org and then loads the rest of our Emacs initialization from Emacs lisp
|
|
;; embedded in literate Org files.
|
|
|
|
(setq straight-check-for-modifications '(check-on-save find-when-checking))
|
|
|
|
(defvar bootstrap-version)
|
|
(let ((bootstrap-file
|
|
(expand-file-name
|
|
"straight/repos/straight.el/bootstrap.el"
|
|
(or (bound-and-true-p straight-base-dir)
|
|
user-emacs-directory)))
|
|
(bootstrap-version 7))
|
|
(unless (file-exists-p bootstrap-file)
|
|
(with-current-buffer
|
|
(url-retrieve-synchronously
|
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
|
'silent 'inhibit-cookies)
|
|
(goto-char (point-max))
|
|
(eval-print-last-sexp)))
|
|
(load bootstrap-file nil 'nomessage))
|
|
|
|
(setq straight-vc-git-default-clone-depth '(1 single-branch)) ;; instead of the default 'full
|
|
|
|
;; prebuild is broken in org-mode (TODO: FIX)
|
|
;; (straight-override-recipe '(org :local-repo "/Users/universelaptop/tmp/org"))
|
|
(straight-use-package 'org)
|
|
|
|
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
|
|
|
|
;; load up all literate org-mode files in this directory
|
|
(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$"))
|
|
|
|
;;; init.el ends here
|