John Kitchin includes little QR codes in his videos. I thought that
was a neat touch that makes it easier for people to jump to a link
while they're watching. I'd like to make it easier to show QR codes
too. The following code lets me show a QR code for the Org link at
point. Since many of my links use custom Org link types that aren't
that useful for people to scan, the code reuses the link resolution
code from https://sachachua.com/dotemacs#web-link so that I can get the regular https:
link.
(defun my-org-link-qr (url) "Display a QR code for URL in a buffer." (qrencode--encode-to-buffer (my-org-stored-link-as-url url))) (use-package qrencode :config (with-eval-after-load 'embark (define-key embark-org-link-map (kbd "q") #'my-org-link-qr)))
This is part of my Emacs configuration.