From b21fc53e29df024e5547635d51a051d771105fea Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 9 Aug 2020 17:35:26 +0100 Subject: ~move ob-tangle to compile-config function Only when we're compiling do we need access to the tangle functionalities. --- Emacs/.config/emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/init.el b/Emacs/.config/emacs/init.el index 7ab3170..526cb44 100644 --- a/Emacs/.config/emacs/init.el +++ b/Emacs/.config/emacs/init.el @@ -1,5 +1,4 @@ ;; Load literate -(require 'ob-tangle) (setq user-emacs-directory "~/.config/emacs/") (defconst +literate/files (list "config.org")) (defconst +literate/output-files (mapcar #'(lambda (x) (replace-regexp-in-string ".org" ".el" x)) +literate/files)) @@ -9,6 +8,7 @@ (mapc #'(lambda (x) (load-file (concat user-emacs-directory x))) +literate/output-files)) (defun +literate/compile-config () + (require 'ob-tangle) (mapc #'(lambda (x) (org-babel-tangle-file (concat user-emacs-directory x))) +literate/files)) (defun +literate/files-exist () -- cgit v1.2.3-13-gbd6f