Add git-link
This commit is contained in:
parent
4c2197b1ce
commit
551a659cb3
@ -378,6 +378,28 @@ Evil keybindings for magit!
|
||||
(setq transient-default-level 7)
|
||||
#+END_SRC
|
||||
|
||||
* git-link
|
||||
Open files in Git forges (GitHub, GitLab, etc.):
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package git-link
|
||||
:init
|
||||
(defun git-link-copy ()
|
||||
(interactive)
|
||||
(let ((git-link-open-in-browser nil))
|
||||
(call-interactively 'git-link)))
|
||||
(leader-def-key "gl" #'git-link)
|
||||
(leader-def-key "gy" #'git-link-copy)
|
||||
:custom
|
||||
(git-link-open-in-browser t)
|
||||
(git-link-remote-alist '(("git.sr.ht" git-link-sourcehut)
|
||||
("github" git-link-github)
|
||||
("bitbucket" git-link-bitbucket)
|
||||
("gitorious" git-link-gitorious)
|
||||
("gitlab" git-link-gitlab)
|
||||
("visualstudio\\|azure" git-link-azure)
|
||||
("git.jeremydormitzer.com" git-link-bitbucket))))
|
||||
#+END_SRC
|
||||
|
||||
* with-editor
|
||||
A utility from the author of Magit to run shell commands using the current Emacs instance as $EDITOR.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user