diff options
author | Alan Pearce | 2017-09-06 14:44:38 +0200 |
---|---|---|
committer | Alan Pearce | 2017-09-06 14:44:38 +0200 |
commit | 7c4e5b86ca9b1712882991d7e3f777db99f01356 (patch) | |
tree | 2e71bc3962e1e0f84dd88f030b24bcb88367a038 | |
parent | f21ac9298f04a588610270c6207a31709cbc96f2 (diff) | |
download | dotfiles-7c4e5b86ca9b1712882991d7e3f777db99f01356.tar.lz dotfiles-7c4e5b86ca9b1712882991d7e3f777db99f01356.tar.zst dotfiles-7c4e5b86ca9b1712882991d7e3f777db99f01356.zip |
Emacs: Add yarn-remove command
-rw-r--r-- | emacs/.emacs.d/main.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 8dd3afd..bb90258 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -593,6 +593,11 @@ (projectile-with-default-dir (projectile-project-root) (cmd-to-echo "yarn" (concat "add " package)))) + (defun yarn-remove (package) + (interactive "spackage: ") + (projectile-with-default-dir (projectile-project-root) + (cmd-to-echo "yarn" (concat "remove " package)))) + (defun yarn-run (cmd) (interactive (list (projectile-completing-read "command: " (alist-get 'scripts (json-read-file (expand-file-name "package.json" (projectile-project-root))))))) |