summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-04-21 11:23:30 +0200
committerAlan Pearce2017-04-21 11:23:30 +0200
commitd3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c (patch)
treeef4ea8427271ab2cf3399cb9612577ad57fb31fc /emacs
parent42f48126a24dfadd1a46575c62dd13d4f4d7cc93 (diff)
downloaddotfiles-d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c.tar.lz
dotfiles-d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c.tar.zst
dotfiles-d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c.zip
Emacs: Add yarn-run command
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index bd7ee3f..aa7add4 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -510,6 +510,11 @@ based upon some folder conventions I use.
               (projectile-with-default-dir (projectile-project-root)
                 (cmd-to-echo "yarn" (concat "add " package))))
 
+            (defun yarn-run (cmd)
+              (interactive "scommand: ")
+              (projectile-with-default-dir (projectile-project-root)
+                (cmd-to-echo "yarn" (concat "run " cmd))))
+
             (defun ap/open-work-project (&optional arg)
               (interactive "P")
               (ap/open-subfolder-project work-project-directory arg))