diff options
author | Alan Pearce | 2017-11-16 11:14:15 +0100 |
---|---|---|
committer | Alan Pearce | 2017-11-16 11:14:15 +0100 |
commit | 4fee69b6d3873e66985e41865e435a4e66f8e0f9 (patch) | |
tree | 7292dfe3ee77d5f334ea5eb670018770577735cd | |
parent | 0e542972ee5668367eadedf51874115e3add381c (diff) | |
download | dotfiles-4fee69b6d3873e66985e41865e435a4e66f8e0f9.tar.lz dotfiles-4fee69b6d3873e66985e41865e435a4e66f8e0f9.tar.zst dotfiles-4fee69b6d3873e66985e41865e435a4e66f8e0f9.zip |
Emacs: Add commands for git helpers
-rw-r--r-- | emacs/.emacs.d/main.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 2014378..61da217 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -557,6 +557,16 @@ (projectile-switch-project-by-name (expand-file-name project-dir (ghq--find-root)) arg))) + (defun git-bug (bug) + (interactive "sbug: ") + (projectile-with-default-dir (projectile-project-root) + (call-process-shell-command (concat "git bug " bug)))) + + (defun git-feature (feature) + (interactive "sfeature: ") + (projectile-with-default-dir (projectile-project-root) + (call-process-shell-command (concat "git feature " feature)))) + (setq projectile-switch-project-action #'projectile-commander projectile-completion-system 'ivy projectile-create-missing-test-files t) |