@use-package => @def-package
This commit is contained in:
parent
0f5dbd0bac
commit
cf927acc07
10 changed files with 25 additions and 32 deletions
|
@ -1,7 +1,7 @@
|
|||
;;; feature/version-control/autoload.el
|
||||
|
||||
;;;###autoload
|
||||
(defun +vcs-git-root ()
|
||||
(defun +vcs-root ()
|
||||
"Get git url root."
|
||||
(-when-let (url (car-safe (browse-at-remote--remote-ref buffer-file-name)))
|
||||
(cdr (browse-at-remote--get-url-from-remote url))))
|
||||
|
@ -27,6 +27,6 @@ Fallback to repository root."
|
|||
(defun +vcs/git-browse-issues ()
|
||||
"Open the github issues page for current repo."
|
||||
(interactive)
|
||||
(if-let (root (+vcs-git-root))
|
||||
(if-let (root (+vcs-root))
|
||||
(browse-url (concat root "/issues"))
|
||||
(user-error "No git root found!")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue