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.
- My Emacs configuration for rewriting links
- Using an Emacs Lisp macro to define quick custom Org Mode links to project files; plus URLs and search
You can watch this short on YouTube, download the video, or download the audio.
4 comments
musaalhassy
2024-10-30T21:41:15ZConsider using org-deflink to define Org links 😉
sachac
2024-10-31T13:08:31ZHah, 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.
Thaodan
2024-12-23T18:05:03ZYou 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 .
sachac
2024-12-27T13:21:08ZOooh, that sounds interesting. Thanks for sharing!