(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)
)
: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