mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-27 14:23:43 -05:00
lang/org: explain org-babel-js-function-wrapper setting
This commit is contained in:
@@ -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}()));"))
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user