From d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 21 Apr 2017 11:23:30 +0200 Subject: Emacs: Add yarn-run command --- emacs/.emacs.d/init.org | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emacs/.emacs.d') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index bd7ee3f2..aa7add49 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)) -- cgit 1.4.1