💾 Archived View for rawtext.club › ~sloum › geminilist › 005536.gmi captured on 2023-11-04 at 13:54:36. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

How do get Gemini URL to appear in post?

Omar Polo op at omarpolo.com

Tue Feb 23 19:43:17 GMT 2021

- - - - - - - - - - - - - - - - - - - 

ew.gemini <ew.gemini at nassur.net> writes:

Hello Omar,
Omar Polo writes:
P.S. Speaking of such, I'll be grateful if someone knows how to mark
gemini links inside mu4e (in mu4e-view-mode.)
I came across a few links which enabled me to properly markup
gemini links in emacs/org-mode, see:
=
gemini://gemini.circumlunar.space/~ew/2021/20210211-org-link-to-elpher.gmi
Down that path might wait, what you are looking for.

Thanks for sharing!

I added your bit of elisp to my config, but it handles only gemini linksinside org documents, which I don't use very often. But digging aroundI ended up with something that seems to work in other buffers too:

;; mu4e specific: (setq mu4e~view-beginning-of-url-regexp "https?\\://\\|mailto:\\|gemini://")

;; generic: (?)

(add-to-list 'thing-at-point-uri-schemes "gemini://")

(defun my/browse-url-elpher (url &rest _args) "Open URL with `elpher-go'." (elpher-go url))

(add-to-list 'browse-url-default-handlers '("\\`gemini:" . my/browse-url-elpher))

With this I'm able to M-x browse-url with the point near a Gemini linkand open it on elpher!

Cheers!

Ciao,
~ew