I want to use js2-mode
instead of js-mode
inside org-babel
sources. Is there a way to define a mode for JavaScript inside those chunks?
#+begin_src js
console.log(1+1)
#+end_src
I want to use js2-mode
instead of js-mode
inside org-babel
sources. Is there a way to define a mode for JavaScript inside those chunks?
#+begin_src js
console.log(1+1)
#+end_src
I suddenly ran onto org-src-lang-modes
, whereas the following snippet solved the problem:
(add-to-list 'org-src-lang-modes
'("js" . js2)
)