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.
This commit is contained in:
Daniel - 2023-01-23 18:26:54 +01:00
parent 12e3d1fcd0
commit 624aa84a79
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 9 additions and 3 deletions

12
init.el
View File

@ -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