all repos — nixfiles @ 4fee69b6d3873e66985e41865e435a4e66f8e0f9

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

Emacs: Add commands for git helpers

Alan Pearce
commit

4fee69b6d3873e66985e41865e435a4e66f8e0f9

parent

0e542972ee5668367eadedf51874115e3add381c

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

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -557,6 +557,16 @@ (ghq--find-projects))))
(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)