Function: evil-digraph
evil-digraph is an autoloaded and byte-compiled function defined in
evil-digraphs.el.
Signature
(evil-digraph DIGRAPH)
Documentation
Convert DIGRAPH to character or list representation.
If DIGRAPH is a list (CHAR1 CHAR2), return the corresponding character;
if DIGRAPH is a character, return the corresponding list.
Searches in evil-digraphs-table-user and evil-digraphs-table.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-digraphs.el
;;;###autoload
(defun evil-digraph (digraph)
"Convert DIGRAPH to character or list representation.
If DIGRAPH is a list (CHAR1 CHAR2), return the corresponding character;
if DIGRAPH is a character, return the corresponding list.
Searches in `evil-digraphs-table-user' and `evil-digraphs-table'."
(if (listp digraph)
(or (cdr (assoc digraph evil-digraphs-table-user))
(cdr (assoc digraph evil-digraphs-table))
(cl-destructuring-bind (char1 char2) digraph
(unless (eq char1 char2)
(or (cdr (assoc (list char2 char1) evil-digraphs-table-user))
(cdr (assoc (list char2 char1) evil-digraphs-table))))))
(or (car (rassoc digraph evil-digraphs-table-user))
(car (rassoc digraph evil-digraphs-table)))))