-
Notifications
You must be signed in to change notification settings - Fork 38
Spacemacs Configuration
John Beppu edited this page Jan 16, 2018
·
5 revisions
This is for Spacemacs users who would like to setup nodejs-repl to fit smoothly into Spacemacs' javascript layer.
dotspacemacs-additional-packages
'(
nodejs-repl
) ;; nodejs-repl
(with-eval-after-load "nodejs-repl"
(spacemacs/set-leader-keys-for-major-mode 'js2-mode "ne" 'nodejs-repl-send-last-expression)
(spacemacs/set-leader-keys-for-major-mode 'js2-mode "nj" 'nodejs-repl-send-line)
(spacemacs/set-leader-keys-for-major-mode 'js2-mode "nr" 'nodejs-repl-send-region)
(spacemacs/set-leader-keys-for-major-mode 'js2-mode "nl" 'nodejs-repl-load-file)
(spacemacs/set-leader-keys-for-major-mode 'js2-mode "n'" 'nodejs-repl-switch-to-repl))-
, n 'Switch to repl -
, n eSend last expression to repl -
, n jSend current line to repl -
, n rSend region to repl -
, n lLoad file into repl