pavelp

Custom face for internal Org Roam links

I wanted Org-roam links (Org Mode links pointing to "ID:") to have a custom face rather than external links. So I asked Claude and he suggested to customize the face for ID links in Org mode by using org-link-set-parameters.

I created my custom face:

(defface my-org-id-link-face
  '((t :inherit org-link :box (:line-width 2 :style released-button)))
  "Face for Org ID links."
  :group 'org-faces)

(with-eval-after-load 'org
  (org-link-set-parameters "id" :face 'my-org-id-link-face))

It works and now internal links look like buttons:

Screenshot 2025-12-26 at 13.56.12.png

Thoughts? Leave a comment