From: Daniel Semyonov Date: Tue, 29 Jun 2021 15:02:51 +0000 (+0300) Subject: Cleanup 'browse-url' integration X-Git-Tag: v3.0.0~22^2~21 X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?a=commitdiff_plain;h=70aa33aa021a46a8337348de253b83aa6a11c71c;p=elpher.git Cleanup 'browse-url' integration Rename 'browse-url-elpher' to 'elpher-browse-url-elpher'. Autoload 'elpher-browse-url-elpher'. --- diff --git a/elpher.el b/elpher.el index 9b7ff32..27a0295 100644 --- a/elpher.el +++ b/elpher.el @@ -1809,14 +1809,14 @@ If ADDRESS is already bookmarked, update the label only." (add-hook 'org-store-link-functions 'elpher-org-link-store))) ;;;###autoload -(defun browse-url-elpher (url &rest _args) +(defun elpher-browse-url-elpher (url &rest _args) "Browse URL using Elpher. This function is used by `browse-url'." (interactive (browse-url-interactive-arg "Elpher URL: ")) (elpher-go url)) (add-to-list 'browse-url-default-handlers - '("^\\(gopher\\|finger\\|gemini\\)://" . browse-url-elpher)) + '("^\\(gopher\\|finger\\|gemini\\)://" . elpher-browse-url-elpher)) ;; Register "gemini://" as a URI scheme so `browse-url' does the right thing (with-eval-after-load 'thingatpt