From 11391485f68c3bbbb076ee12e3fc49ba410ecaca Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 24 Apr 2021 01:08:53 +0800 Subject: [PATCH] Update project-specific config --- .dir-locals.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index 91640b7..cb9aae7 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -1,9 +1,17 @@ ((org-mode . - ((org-babel-default-header-args . ((:session . "none") + ((org-babel-default-header-args . ((:session . "none") (:results . "replace output") (:exports . "both") (:cache . "no") (:noweb . "yes") + (:mkdirp . "yes") (:tangle . "no"))) - (org-babel-results-keyword . "results") - (org-export-with-toc . t)))) + (org-babel-default-header-args:org . ((:results . "silent") + (:exports . "code"))) + (eval . (setq org-babel-default-header-args + (cons `(:dir . ,(concat + (file-name-directory (buffer-file-name)) + "assets/" + (file-name-base (buffer-file-name)))) + (assq-delete-all :dir org-babel-default-header-args)))) + (org-babel-results-keyword . "results"))))