diff options
author | Alan Pearce | 2017-04-21 11:23:30 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-21 11:23:30 +0200 |
commit | d3e3f4ce1edce7fb26dd8c359f4f47caf3458d7c (patch) | |
tree | ef4ea8427271ab2cf3399cb9612577ad57fb31fc /emacs | |
parent | 42f48126a24dfadd1a46575c62dd13d4f4d7cc93 (diff) | |
download | dotfiles-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.org | 5 |
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)) |