From dbcd6d2015627485e4d79a04404d8615b58303a0 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 30 Jan 2025 08:50:39 +1100 Subject: [emacs] Factor infobox forge url format --- emacs/.emacs.d/lisp/my/my-gitlab.el | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'emacs/.emacs.d/lisp/my/my-gitlab.el') diff --git a/emacs/.emacs.d/lisp/my/my-gitlab.el b/emacs/.emacs.d/lisp/my/my-gitlab.el index 27f3344..56542c0 100644 --- a/emacs/.emacs.d/lisp/my/my-gitlab.el +++ b/emacs/.emacs.d/lisp/my/my-gitlab.el @@ -75,17 +75,9 @@ (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 . ("URL" . my-gitlab-format-url)) + `((http_url_to_repo . ("URL" . my-forge-infobox-format-url)) (name_with_namespace . "Name") (description . "Description") (created_at . ("Created at" . my-gitlab-format-time-string)) -- cgit v1.2.3