Add git-link

This commit is contained in:
David Morgan 2023-03-11 13:24:29 +00:00
parent c8ac93d906
commit bd273eabd7
Signed by: djm
GPG Key ID: C171251002C200F2
1 changed files with 12 additions and 0 deletions

View File

@ -296,5 +296,17 @@
(use-package forge
:after magit)
(use-package git-link
:config
(defun git-link-on-branch ()
(interactive)
(let ((git-link-use-commit nil))
(call-interactively 'git-link)))
:custom (git-link-use-commit t)
:bind
("C-c g s" . git-link)
("C-c g S" . git-link-on-branch)
("C-c g c" . git-link-commit))
(provide 'init-git)
;;; init-git.el ends here