Skip to content

Instantly share code, notes, and snippets.

@lazywithclass
Created May 22, 2017 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lazywithclass/ceb99f1f316cc5b8d8d1bdac736b6c4e to your computer and use it in GitHub Desktop.
Save lazywithclass/ceb99f1f316cc5b8d8d1bdac736b6c4e to your computer and use it in GitHub Desktop.
Spacemacs nodejs-repl configuration repacing Skewer

It took some time to figure out how to override Skewer's defaults, turns out this is what worked, without the hook it was not working.

(add-hook 'js2-mode-hook #'(lambda ()
                             (spacemacs/set-leader-keys-for-major-mode 'js2-mode
                               "'" 'nodejs-repl
                               "ee" 'nodejs-repl-send-last-sexp
                               "eb" 'nodejs-repl-send-buffer
                               "er" 'nodejs-repl-send-region)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment