From 2b169cf1a949b5b773b4ee6a60eba768ee3afb79 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 9 Sep 2023 23:41:36 +1000 Subject: [emacs] Adding a client to forgejo/codeberg --- emacs/.emacs.d/lisp/my/my-org.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'emacs/.emacs.d/lisp/my/my-org.el') diff --git a/emacs/.emacs.d/lisp/my/my-org.el b/emacs/.emacs.d/lisp/my/my-org.el index 016bdd7..41b73d4 100644 --- a/emacs/.emacs.d/lisp/my/my-org.el +++ b/emacs/.emacs.d/lisp/my/my-org.el @@ -974,10 +974,12 @@ When BLOCK-REGEXP is non-nil, use this regexp to find blocks." (require 'my-gitlab) (require 'my-pacman) (require 'my-openlibrary) +(require 'my-codeberg) (defun my-grok-dispatcher (url) (when-let ((host (url-host (url-generic-parse-url url)))) (cond ((string-match "wikipedia\\.org" host) 'my-grok-wikipedia) ((string-match "github\\.com" host) 'my-grok-github) + ((string-match "codeberg\\.org" host) 'my-grok-codeberg) ((string-match "\\(gitlab\\.\\|salsa.debian.org\\)" host) 'my-grok-gitlab) ((string-match "openlibrary.org" host) 'my-grok-openlibrary) -- cgit v1.2.3