Created
August 13, 2012 19:14
-
-
Save eethann/3343372 to your computer and use it in GitHub Desktop.
emacs init.el for a Node.js REPL via js-comint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'js-comint) | |
(setq inferior-js-program-command "node") ;; not "node-repl" | |
;; Use your favorited js mode here: | |
(add-hook 'js3-mode-hook '(lambda () | |
(local-set-key "\C-x\C-e" | |
'js-send-last-sexp) | |
(local-set-key "\C-\M-x" | |
'js-send-last-sexp-and-go) | |
(local-set-key "\C-cb" | |
'js-send-buffer) | |
(local-set-key "\C-c\C-b" | |
'js-send-buffer-and-go) | |
(local-set-key "\C-cl" | |
'js-load-file-and-go) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment