To use ob-coffee
in an org-babel
source block, the cofee-script language
must be enabled in the custom org-babel-load-languages
alist. Alternatively, running the following snippet during
initialization will enable the mode.
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(coffee . t)))
- session
#+BEGIN_SRC coffee :session async new Promise (resolve, reject)-> setTimeout (-> resolve "finally"), 3000 #+END_SRC #+RESULTS: : Promise: : finally