diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-09 17:35:26 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-09 17:35:59 +0100 |
commit | b21fc53e29df024e5547635d51a051d771105fea (patch) | |
tree | 543618ce58a1572a52234b5dff004d24642f4106 /Emacs | |
parent | b309ef154d8c743917b517986d595a955f59fa54 (diff) | |
download | dotfiles-b21fc53e29df024e5547635d51a051d771105fea.tar.gz dotfiles-b21fc53e29df024e5547635d51a051d771105fea.tar.bz2 dotfiles-b21fc53e29df024e5547635d51a051d771105fea.zip |
~move ob-tangle to compile-config function
Only when we're compiling do we need access to the tangle functionalities.
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/init.el | 2 |
1 files changed, 1 insertions, 1 deletions
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 () |