about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-git.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-07-03 21:02:12 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-07-03 21:02:12 +0100
commit3fbaf487183e7b7e3785628ab8ed6290ddd94fd7 (patch)
tree10c7e584e5b1e054dea84dd4d8fa8c397f0a1519 /emacs-prelude/personal/lisp/init-git.el
parentb5e8c2052c43e9865aad35380ff0b36cabae19d2 (diff)
downloaddotfiles-3fbaf487183e7b7e3785628ab8ed6290ddd94fd7.tar.gz
Update emacs prelude config
Diffstat (limited to 'emacs-prelude/personal/lisp/init-git.el')
-rw-r--r--emacs-prelude/personal/lisp/init-git.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs-prelude/personal/lisp/init-git.el b/emacs-prelude/personal/lisp/init-git.el
new file mode 100644
index 0000000..5cb0b78
--- /dev/null
+++ b/emacs-prelude/personal/lisp/init-git.el
@@ -0,0 +1,15 @@
+(defun magit-set-upstream ()
+  (interactive)
+  (magit-shell-command-topdir "git upstream"))
+
+(use-package magit
+  :after key-chord
+  :config
+  (key-chord-define-global "UU" 'magit-set-upstream))
+;  :bind (("C-c g y" . magit-upstream))) ;; TODO
+
+(use-package forge
+  :after magit)
+
+(provide 'init-git)
+