Re: org-sbe and code blocks in a different files

2020-07-08 Thread Douglas Perrin
Hi Michael, Maybe I am not understanding what you want to do but I use org-babel-lob-ingest/org-sbe to execute blocks from other files on start-up like this: # Local Variables: # eval: (org-babel-lob-ingest "Template-Loader.org") # eval: (org-sbe "Init-Template") ;; the name of a block in

Re: Import Reusable org-babel snippet using #+SETUPFILE

2020-06-18 Thread Douglas Perrin
Hi Salomon, Babel definitions, in this case, lots of elsip blocks to add behaviors like this example to clear bloc results on save to avoid polluting commits that can be turned on and off per section with properties. #+name: Clear-Results-On-Save #+begin_src emacs-lisp :results none ;;; code to

Re: Import Reusable org-babel snippet using #+SETUPFILE

2020-06-15 Thread Douglas Perrin
Hi Salomon Turgman, I do this a lot and have had success using a combination of #+SETUPFILE to bring in names and configuration, and org-sbe to do initialization. I mix emacs vars and org names in my source headers with back quoting. The following example has a template file containing user/local