From b556fa7d3fcc9fc0142d5766a54ec9fb5eaf7512 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 23 Oct 2019 18:05:15 -0400 Subject: [PATCH] lang/org: explain org-babel-js-function-wrapper setting --- modules/lang/org/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index b6fe0be5c..b8ebc28b2 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -102,7 +102,8 @@ ;; ipython, where the result could be an image) (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}()));"))