Add nvm.el to manage node versions within Emacs
This commit is contained in:
parent
6662ddd9fb
commit
f616ec6cac
@ -2278,6 +2278,24 @@ A command to format JS via prettier:
|
||||
(shell-command-on-region start end (concat "prettier --parser " parser) nil t)))
|
||||
#+END_SRC
|
||||
|
||||
** NVM
|
||||
Manage node version via NVM within Emacs:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package nvm
|
||||
:commands (nvm-use
|
||||
nvm-use-for
|
||||
nvm-use-for-buffer
|
||||
nvm--installed-versions)
|
||||
:init
|
||||
(defun nvm (version)
|
||||
(interactive (list
|
||||
(completing-read "Node version: "
|
||||
(mapcar #'car
|
||||
(nvm--installed-versions)))))
|
||||
(nvm-use version)))
|
||||
#+END_SRC
|
||||
|
||||
|
||||
* Typescript
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package typescript-mode
|
||||
|
Loading…
Reference in New Issue
Block a user