💾 Archived View for gemini.circumlunar.space › ~ew › 2021 › 20210211-org-link-to-elpher.gmi captured on 2022-01-08 at 14:25:48. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2024-06-20)

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

2021-02-11

From org-link to elpher

tags: emacs

I use elpher as my default gemini browser.

gopher://thelambdalab.xyz/1/projects/elpher/

https://thelambdalab.xyz/elpher/

As a regular reader of

https://planet.emacslife.com/

I came across this article

https://christiantietze.de/posts/2021/02/emacs-org-mode-zettel-link/

and its content looked suspicously like offering the missing puzzle piece to my failed attempts to make gemini:// links open in elpher on C-c C-o (org-open-at-point).

And indeed, one redirection further at

https://alhassy.github.io/org-special-block-extras/#Links

I started to understand.

So maybe this is helpful for fellow elpher users:

;; - gemini -  make gemini: links work somewhat!
;; https://alhassy.github.io/org-special-block-extras/#Links
(org-link-set-parameters
 ;;link type: gemini://host/index.gmi
 "gemini"
 :follow (lambda (path) (elpher-go (concat "gemini:" path)))
 :face '(:foreground "turquoise" :weight bold)
 :display 'full
 )

Thanks to everyone involved in sharing code and documentation in this matter!

Full disclosure: Allthough I started using emacs in 1993-02 I never had the urgent need to get to grips with elisp. So I didn't really know, where to look. It certainly helped that I am in the process of reading "Land of Lisp" (by Conrad Barski).

Cheers,

~ew

Home