Function: hydra-set-property

hydra-set-property is a byte-compiled function defined in hydra.el.

Signature

(hydra-set-property NAME KEY VAL)

Documentation

Set hydra property.

NAME is the symbolic name of the hydra. KEY and VAL are forwarded to plist-put.

Source Code

;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra-set-property (name key val)
  "Set hydra property.
NAME is the symbolic name of the hydra.
KEY and VAL are forwarded to `plist-put'."
  (let ((entry (assoc name hydra-props-alist))
        plist)
    (when (null entry)
      (add-to-list 'hydra-props-alist (list name))
      (setq entry (assoc name hydra-props-alist)))
    (setq plist (cdr entry))
    (setcdr entry (plist-put plist key val))))