hamacs/ha-org-babel.org
2021-11-09 17:49:52 -08:00

2.5 KiB

Literate Programming with Org

This section is primarily about development in a literate way, especially focused on literate devops.

Introduction

Let's turn on all the languages:

  (use-package org
    :init
    (setq org-confirm-babel-evaluate nil
          org-src-fontify-natively t
          org-src-tab-acts-natively t)
    :config
    (add-to-list 'org-src-lang-modes '("dot" . "graphviz-dot"))

    (org-babel-do-load-languages 'org-babel-load-languages
                                 '((shell      . t)
                                   (js         . t)
                                   (emacs-lisp . t)
                                   (clojure    . t)
                                   (python     . t)
                                   (ruby       . t)
                                   (dot        . t)
                                   (css        . t)
                                   (plantuml   . t))))
t