From 768ed10dc30c5e0dd7a152557e4d9dc63d26e8d1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 Jun 2019 02:27:07 +0200 Subject: [PATCH] lang/org (babel): sys.print -> console.log Update ob-js's wrapper for js babel blocks. sys.print was deprecated and removed in later versions of node. --- modules/lang/org/config.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index ed0c6329f..8f9a56451 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -113,7 +113,10 @@ collect p)) (when (featurep! +ipython) - (load! "contrib/ipython"))) + (load! "contrib/ipython")) + + ;; Fixes for various babel plugins + (setq org-babel-js-function-wrapper "console.log(require('util').inspect(function(){\n%s\n}()));")) (defun +org|init-babel-lazy-loader ()