@use-package => @def-package

This commit is contained in:
Henrik Lissner 2017-02-11 06:51:59 -05:00
parent 0f5dbd0bac
commit cf927acc07
10 changed files with 25 additions and 32 deletions

View file

@ -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!")))