summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-11-16 12:54:36 +0100
committerAlan Pearce2017-11-16 12:54:36 +0100
commitb1208e513d25cecffa465ec17dfb785f91a50279 (patch)
treeeac0c7d5931c902acec676281ed29e16fe12d54b /emacs
parented67fa8bb1b4b253cd55801d906ac67ff6ec990f (diff)
downloadnixfiles-b1208e513d25cecffa465ec17dfb785f91a50279.tar.lz
nixfiles-b1208e513d25cecffa465ec17dfb785f91a50279.tar.zst
nixfiles-b1208e513d25cecffa465ec17dfb785f91a50279.zip
Emacs: Add command to open pull requests
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 61da217f..8ac0c37d 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -567,6 +567,11 @@
               (projectile-with-default-dir (projectile-project-root)
                 (call-process-shell-command (concat "git feature " feature))))
 
+            (defun open-pull-request ()
+              (interactive)
+              (async-shell-command "hub pr"))
+            (defalias 'open-pr #'open-pull-request)
+
             (setq projectile-switch-project-action #'projectile-commander
                   projectile-completion-system 'ivy
                   projectile-create-missing-test-files t)