summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-03-06 13:34:36 +0100
committerAlan Pearce2018-03-06 13:34:36 +0100
commit65ce8c999a001071ca452e1ccf65f5b4ca8e8062 (patch)
tree68ba8bb9e7626893b85e7ac3074a3f5223d4b0ef /emacs
parent3e53beeb422547fd76153e6bec39bc2095fcaae0 (diff)
downloadnixfiles-65ce8c999a001071ca452e1ccf65f5b4ca8e8062.tar.lz
nixfiles-65ce8c999a001071ca452e1ccf65f5b4ca8e8062.tar.zst
nixfiles-65ce8c999a001071ca452e1ccf65f5b4ca8e8062.zip
Emacs: run npm version as a normal shell command
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index e7499494..b6fe9781 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -539,7 +539,7 @@
               (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")