/ob-compile

Run compile by org-babel

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

ob-compile - Run compile by org-babel

https://melpa.org/packages/ob-compile-badge.svg http://img.shields.io/:license-gpl3-blue.svg

Setup

(use-package ob-compile
  :ensure t :defer t

  ;; ;; To enable saving the output by :output option
  ;; :config (add-hook 'compilation-finish-functions #'ob-compile-save-file)
)

Usage

  • :name if set, the buffer is *ob-compile:NAME*
  • :output if set, the buffer will be save after compilation exit
  • :comint if set to t, the buffer will be in comint mode

Example:

#+begin_src compile :name uname :output uname.txt :comint t
uname -a
#+end_src