all repos — archive/dotfiles @ 65ce8c999a001071ca452e1ccf65f5b4ca8e8062

Superseded by nixfiles

Emacs: run npm version as a normal shell command
Alan Pearce alan@alanpearce.eu
Tue, 06 Mar 2018 13:34:36 +0100
commit

65ce8c999a001071ca452e1ccf65f5b4ca8e8062

parent

3e53beeb422547fd76153e6bec39bc2095fcaae0

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -539,7 +539,7 @@ (defun npm-version (type)               (interactive (list
                             (projectile-completing-read "version: " '("major" "minor" "patch" "premajor" "preminor" "prepatch" "prerelease" "from-git"))))
               (projectile-with-default-dir (projectile-project-root)
-                (cmd-to-echo "npm" (concat "version " type))))
+                (message (shell-command-to-string (concat "npm" " version " type)))))
 
             (defun ap/open-project (&optional arg)
               (interactive "P")