aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/lisp/my/my-gitlab.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-gitlab.el')
-rw-r--r--emacs/.emacs.d/lisp/my/my-gitlab.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-gitlab.el b/emacs/.emacs.d/lisp/my/my-gitlab.el
index ad7f0ed..27f3344 100644
--- a/emacs/.emacs.d/lisp/my/my-gitlab.el
+++ b/emacs/.emacs.d/lisp/my/my-gitlab.el
@@ -73,9 +73,19 @@
(string-match-p "^/[^/]+/[^/]+$" (url-filename urlobj)))))
(require 'my-buffer)
+(require 'my-web)
+(require 'my-magit)
+(defun my-gitlab-format-url (url)
+ (concat url
+ " -- " (buttonize "clone"
+ (lambda (_)
+ (my-magit-clone url current-prefix-arg)))
+ " " (buttonize "context"
+ (lambda (_)
+ (funcall my-url-context-function url)))))
(defvar my-gitlab-project-info-specs
- `((http_url_to_repo . "Clone")
+ `((http_url_to_repo . ("URL" . my-gitlab-format-url))
(name_with_namespace . "Name")
(description . "Description")
(created_at . ("Created at" . my-gitlab-format-time-string))