GitHub - abicky/nodejs-repl.el: Run Node.js REPL and communicate with the proces...
source link: https://github.com/abicky/nodejs-repl.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
nodejs-repl.el
Run Node.js REPL in Emacs
Description
This program is derived from comint-mode and provides the following features.
- token completion, same as Node.js REPL
- file name completion in string
- incremental history search
- sending JavaScript codes to REPL
Usage
Put this file in your Emacs lisp path (e.g. ~/.emacs.d/site-lisp) and add the following line to your .emacs:
(require 'nodejs-repl)
Type M-x nodejs-repl
to run Node.js REPL.
See also comint-mode
to check key bindings.
You can define key bindings to send JavaScript codes to REPL like below:
(add-hook 'js-mode-hook
(lambda ()
(define-key js-mode-map (kbd "C-x C-e") 'nodejs-repl-send-last-expression)
(define-key js-mode-map (kbd "C-c C-j") 'nodejs-repl-send-line)
(define-key js-mode-map (kbd "C-c C-r") 'nodejs-repl-send-region)
(define-key js-mode-map (kbd "C-c C-l") 'nodejs-repl-load-file)
(define-key js-mode-map (kbd "C-c C-z") 'nodejs-repl-switch-to-repl)))
Author
Takeshi Arabiki (abicky)
Copyright and License
Copyright (C) 2012-2017 Takeshi Arabiki (abicky)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Recommend
-
42
REPL stands for read-eval-print-loop, or just an interactive session (usually in your terminal), where you can enter some expression an...
-
27
README.md nodejs.org
-
14
README.md node-cron
-
1
// Tutorial //How To Use the Node.js REPLPublished on September 18, 2019 ยท Updated on March 18, 2022By Stack AbuseDevelop...
-
6
Carina Sorrocher yesterday Migration from IRPA to PA โ Environments,Migration from IRPA to SAP Build Process Automation ...
-
1
Shilpa Vij January 28, 2023 1 minute read...
-
1
CPU Buying Tips: 5 Things You Need To Watch Out For When Purchasing A New Processor ...
-
9
Rodolfo Felipe Celante July 3, 2023 2 minute read...
-
4
Monday, July 3, 2023 gitlab.freedesktop.org now has a bugbot for automatic issue/merge request processing As of today, gitlab.freedesktop.org provides easy h...
-
4
...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK