From ba6f995e32d192a762eb1d26a3f35b985ac25fdc Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Wed, 26 Feb 2020 10:47:06 -0500 Subject: [PATCH] [emacs] Look for and load library of babel files --- .doom.d/config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.doom.d/config.org b/.doom.d/config.org index f589b71..8b8425a 100644 --- a/.doom.d/config.org +++ b/.doom.d/config.org @@ -657,6 +657,18 @@ be based on their headings. :hook (org-mode . org-sticky-header-mode) :config (setq org-sticky-header-full-path 'full)) #+end_src +** Library of Babel + +Load shared code snippets to be used in org documents. + +#+begin_src emacs-lisp + (let ((org-dirs '("~/org" "~/org-aweber"))) + (seq-map #'org-babel-lob-ingest + (seq-filter #'f-exists? + (seq-map (lambda (path) (f-join path "library-of-babel.org")) + org-dirs)))) +#+end_src + * Eshell ** Change directory in the context of a remote host #+begin_src emacs-lisp