~~/.doom.d -> ~/.config/doom

This commit is contained in:
dx
2020-07-15 15:56:08 +01:00
parent 33edf2cf6d
commit 6bdf6db3b4
42 changed files with 16 additions and 14 deletions

View File

@@ -0,0 +1,20 @@
;;; ~/Dotfiles/doom.d/config.el -*- lexical-binding: t; -*-
(defconst +bootstrap/org-files '("config.org" "personal.org") "Org files to load relative to =doom-private-dir=/org/*")
(defconst +bootstrap/byte-compile t "Byte compile org files")
(defun +bootstrap/apply-files (babel-func)
"Apply babel-func to a transformed list of org-files"
(cl-map nil #'(lambda (file) (funcall babel-func (expand-file-name (concat doom-private-dir "org/" file)))) +bootstrap/org-files))
(defun +bootstrap/load-files ()
"Load org files into current Emacs session via =org-babel-load-file="
(interactive)
(+bootstrap/apply-files #'org-babel-load-file))
(defun +bootstrap/compile-files ()
"Compile org files via =org-babel-tangle-file="
(interactive)
(+bootstrap/apply-files #'org-babel-tangle-file))
(+bootstrap/load-files)