all repos — nixfiles @ d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c

System and user configuration, managed by nix and home-manager

Emacs: Add yarn-run command

Alan Pearce
commit

d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c

parent

42f48126a24dfadd1a46575c62dd13d4f4d7cc93

1 file changed, 5 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -510,6 +510,11 @@ (interactive "spackage: ")
(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))