From ac7721bd3c6574d275e38b9211fec63ae6bd36b4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 5 Dec 2016 12:54:28 +0100 Subject: Emacs: Add yarn-install command --- tag-emacs/emacs.d/init.org | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tag-emacs/emacs.d/init.org') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 4dd7c06d..8e628f0b 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -386,6 +386,10 @@ based upon some folder conventions I use. (ap/subfolder-projects from-dir)))) (projectile-switch-project-by-name (expand-file-name project-dir from-dir) arg))) + (defun yarn-install (&optional arg) + (interactive "P") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "yarn" "install"))) (defun ap/open-work-project (&optional arg) (interactive "P") -- cgit 1.4.1