Function: marginalia-annotate-char

marginalia-annotate-char is a byte-compiled function defined in marginalia.el.

Signature

(marginalia-annotate-char CAND)

Documentation

Annotate character CAND with its general character category and character code.

Source Code

;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-annotate-char (cand)
  "Annotate character CAND with its general character category and character code."
  (when-let* ((char (char-from-name cand t)))
    (marginalia--fields
     (:left char :format" (%c)" :face 'marginalia-char)
     (char :format "%06X" :face 'marginalia-number)
     ((char-code-property-description
       'general-category
       (get-char-code-property char 'general-category))
      :width 30 :face 'marginalia-documentation))))