From d2486e39561717da60550a1aa5ae80ff14b8a352 Mon Sep 17 00:00:00 2001 From: Liang Zhou Date: Mon, 7 Mar 2016 14:22:37 -0600 Subject: [PATCH] Update tern configuration for windows. --- layers/+lang/javascript/README.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layers/+lang/javascript/README.org b/layers/+lang/javascript/README.org index 5d98b07fa..fa61669f9 100644 --- a/layers/+lang/javascript/README.org +++ b/layers/+lang/javascript/README.org @@ -67,6 +67,13 @@ layer, as detailed in [[file:../../../doc/DOCUMENTATION.org::Setting%20configura (javascript :variables javascript-disable-tern-port-files nil) #+END_SRC +Windows users may need to set the variable =tern-command= in order for emacs to locate +and launch tern server successfully. See [[https://github.com/ternjs/tern/issues/256#issuecomment-141531735][this open issue for more details]]: + +#+BEGIN_SRC emacs-lisp + (setq tern-command '("node" "/path/to/tern/bin/tern")) +#+END_SRC + ** Indentation To change how js2-mode indents code, set the variable =js2-basic-offset=, as such: