@@ -10,15 +10,15 @@ Description
1010
1111This program is derived from comint-mode and provides the following features.
1212
13- * token completion, same as Node.js REPL
14- * file name completion in string
15- * incremental history search
16- * sending JavaScript codes to REPL
13+ * Token completion, same as Node.js REPL
14+ * File name completion in string
15+ * Incremental history search
16+ * Sending JavaScript code to REPL
1717
1818Usage
1919-----
2020
21- Put this file in your Emacs lisp path (e.g. ~ /.emacs.d/site-lisp)
21+ Put this file in your Emacs Lisp path (e.g. ~ /.emacs.d/site-lisp)
2222and add the following line to your .emacs:
2323
2424``` elisp
@@ -28,16 +28,10 @@ and add the following line to your .emacs:
2828Type ` M-x nodejs-repl ` to run Node.js REPL.
2929See also ` comint-mode ` to check key bindings.
3030
31- You can define key bindings to send JavaScript codes to REPL like below :
31+ You can define key bindings to send JavaScript code to REPL as follows :
3232
3333``` elisp
34- (add-hook 'js-mode-hook
35- (lambda ()
36- (define-key js-mode-map (kbd "C-x C-e") 'nodejs-repl-send-last-expression)
37- (define-key js-mode-map (kbd "C-c C-j") 'nodejs-repl-send-line)
38- (define-key js-mode-map (kbd "C-c C-r") 'nodejs-repl-send-region)
39- (define-key js-mode-map (kbd "C-c C-l") 'nodejs-repl-load-file)
40- (define-key js-mode-map (kbd "C-c C-z") 'nodejs-repl-switch-to-repl)))
34+ (add-hook 'js-mode-hook #'nodejs-repl-minor-mode)
4135```
4236
4337When a version manager such as nvm is used to run different versions
@@ -73,7 +67,7 @@ Takeshi Arabiki (abicky)
7367Copyright and License
7468---------------------
7569
76- Copyright (C) 2012-2020 Takeshi Arabiki (abicky)
70+ Copyright (C) 2012-2024 Takeshi Arabiki (abicky)
7771
7872This program is free software: you can redistribute it and/or modify
7973it under the terms of the GNU General Public License as published by
0 commit comments