lang/org: explain org-babel-js-function-wrapper setting

This commit is contained in:
Henrik Lissner 2019-10-23 18:05:15 -04:00
parent 909c277968
commit b556fa7d3f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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}()));"))