Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Feb 18, 2024
2 parents f5ce3d5 + 77a864c commit cc74729
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 72 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@ jobs:
fail-fast: false
matrix:
emacs-version:
- '25.3'
- '26.1'
- '26.2'
- '26.3'
- '27.1'
- '27.2'
- '28.1'
- '28.2'
- '29.1'
- '29.2'
node-version:
- '10'
- '12'
- '13'
- '18'
- '20'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Set environement variables
run: |
echo "::add-path::$HOME/.cask/bin"
echo "$HOME/.cask/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
Expand Down
22 changes: 8 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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
* Token completion, same as Node.js REPL
* File name completion in string
* Incremental history search
* Sending JavaScript code to REPL

Usage
-----

Put this file in your Emacs lisp path (e.g. ~/.emacs.d/site-lisp)
Put this file in your Emacs Lisp path (e.g. ~/.emacs.d/site-lisp)
and add the following line to your .emacs:

```elisp
Expand All @@ -28,16 +28,10 @@ and add the following line to your .emacs:
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:
You can define key bindings to send JavaScript code to REPL as follows:

```elisp
(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)))
(add-hook 'js-mode-hook #'nodejs-repl-minor-mode)
```

When a version manager such as nvm is used to run different versions
Expand Down Expand Up @@ -73,7 +67,7 @@ Takeshi Arabiki (abicky)
Copyright and License
---------------------

Copyright (C) 2012-2020 Takeshi Arabiki (abicky)
Copyright (C) 2012-2024 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
Expand Down
Loading

0 comments on commit cc74729

Please sign in to comment.