diff --git a/emacs/init.org b/emacs/init.org index 4e3a4b3..09ef90e 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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