summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.org
diff options
context:
space:
mode:
authorAlan Pearce2016-12-05 12:54:28 +0100
committerAlan Pearce2016-12-05 12:54:52 +0100
commitac7721bd3c6574d275e38b9211fec63ae6bd36b4 (patch)
treef72ae9e99d0c7d522d8a79adf54448009b716cc0 /tag-emacs/emacs.d/init.org
parentc15bd0732c9530d739d05b77ca80979ffd33494d (diff)
downloaddotfiles-ac7721bd3c6574d275e38b9211fec63ae6bd36b4.tar.lz
dotfiles-ac7721bd3c6574d275e38b9211fec63ae6bd36b4.tar.zst
dotfiles-ac7721bd3c6574d275e38b9211fec63ae6bd36b4.zip
Emacs: Add yarn-install command
Diffstat (limited to 'tag-emacs/emacs.d/init.org')
-rw-r--r--tag-emacs/emacs.d/init.org4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 4dd7c06..8e628f0 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")