lang/org: explain org-babel-js-function-wrapper setting
This commit is contained in:
parent
909c277968
commit
b556fa7d3f
1 changed files with 2 additions and 1 deletions
|
@ -102,7 +102,8 @@
|
||||||
;; ipython, where the result could be an image)
|
;; ipython, where the result could be an image)
|
||||||
(add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images)
|
(add-hook 'org-babel-after-execute-hook #'org-redisplay-inline-images)
|
||||||
|
|
||||||
;; Fixes for various babel plugins
|
;; Fix 'require(...).print is not a function' error from `ob-js' when
|
||||||
|
;; executing JS src blocks
|
||||||
(setq org-babel-js-function-wrapper "console.log(require('util').inspect(function(){\n%s\n}()));"))
|
(setq org-babel-js-function-wrapper "console.log(require('util').inspect(function(){\n%s\n}()));"))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue