Function: org-modern--priority
org-modern--priority is a natively compiled function defined in
org-modern.el.
Signature
(org-modern--priority)
Documentation
Prettify priorities according to org-modern-priority.
Source Code
;; Defined in /nix/store/0fwir9vccqq0yiqnswyf22ip3sl68f49-emacs-packages-deps/share/emacs/site-lisp/elpa/org-modern-20260722.1411/org-modern.el
(defun org-modern--priority ()
"Prettify priorities according to `org-modern-priority'."
(let* ((beg (match-beginning 1))
(end (match-end 1))
(prio (char-before (1- end))))
(if-let* ((rep (and (consp org-modern-priority)
(cdr (assq prio org-modern-priority)))))
(put-text-property beg end 'display rep)
(put-text-property beg (1+ beg) 'display " ")
(put-text-property (1- end) end 'display " ")
(put-text-property
beg end 'face
(if-let* ((face (or (cdr (assq prio org-modern-priority-faces))
(cdr (assq t org-modern-priority-faces)))))
`(,face org-modern-label)
'org-modern-priority)))))