From 624aa84a79cab1d3a5f5790d3694e88b2152938d Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 23 Jan 2023 18:26:54 +0100 Subject: [PATCH] Explicitly set default Org babel header args It's clearer that way. Also wrap results in a text src block by default, instead of in a src block of the same language as the executing block. --- init.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index d8bdccc..aa2e1a8 100644 --- a/init.el +++ b/init.el @@ -1411,9 +1411,15 @@ point to the beginning of buffer first." ;; Babel (use-package ob-core - :init (setq org-export-use-babel nil) - :config (setf (alist-get :results org-babel-default-header-args) - "output code replace")) + :init (setq org-export-use-babel nil + org-babel-default-header-args '((:session . "none") + (:results . "output code replace") + (:wrap . "src text") + (:exports . "both") + (:cache . "no") + (:noweb . "no") + (:hlines . "no") + (:tangle . "no")))) (use-package ob-sql :config (progn