Yay Emacs 7: Rewriting and copying custom Org Mode links

| yay-emacs, emacs, org

I use org-link-set-parameters to define a lot of custom links in Org Mode for things like my blog or my Emacs config. Then I can code how I want to complete, open, and export those links. These links don't make sense to other people, of course. I want to be able to quickly copy or replace my custom links with regular web links, like the ones I use when I export to HTML.

My shortcut for this is C-. u to copy the exported URL and C-. r to rewrite a link. These stand for my-embark-org-copy-exported-url and my-embark-replace-link-with-exported-url respectively.

You can watch this short on YouTube, download the video, or download the audio.

View org source for this post
You can view 4 comments or e-mail me at sacha@sachachua.com.

4 comments

musaalhassy

2024-10-30T21:41:15Z

Consider using org-deflink to define Org links 😉

Hah, I've been defining my custom links with vanilla Org so that they're theoretically easier for other people to pick up or use the idea for something else. I do use org-special-block-extras for the custom blocks, though.

You can also add link handler for preview of link such as http(s).
Check out org-remoteimg. I recently added support to also support the new org-mode api added recently .

Oooh, that sounds interesting. Thanks for sharing!