More org-babel customization

This commit is contained in:
Seth Morabito 2022-11-21 08:13:01 -08:00
parent a34ff62548
commit 02bac05eb0
1 changed files with 18 additions and 2 deletions

View File

@ -955,18 +955,34 @@ I also set up a couple of notes files.
*** Org-Babel Language Integration
I want to be able to support C, Emacs Lisp, and GraphViz blocks in
org-babel.
I want to be able to support C, Emacs Lisp, shell, python, and
GraphViz blocks in org-babel.
#+BEGIN_SRC emacs-lisp
(org-babel-do-load-languages
'org-babel-load-languages '((python . t)
(C . t)
(shell . t)
(emacs-lisp . t)
(dot . t)))
(setq org-babel-python-command "python3")
#+END_SRC
Next I want output header-args to be =:results output :wrap EXAMPLE= by
default. This horrid mess accomplishes that by removing the old
=:results= and =:wrap= keys from the association list
=org-babel-default-header-args= and then replacing them.
#+BEGIN_SRC emacs-lisp
(cons '(:results . "output")
(cons '(:wrap . "EXAMPLE")
(assq-delete-all
:wrap
(assq-delete-all
:results
org-babel-default-header-args))))
#+END_SRC
*** Display Options
I turn on Pretty Entities, which allows Emacs, in graphics mode, to