Function: hydra--call-interactively-remap-maybe

hydra--call-interactively-remap-maybe is a byte-compiled function defined in hydra.el.

Signature

(hydra--call-interactively-remap-maybe CMD)

Documentation

call-interactively the given CMD or its remapped equivalent.

Only when hydra-look-for-remap is non nil.

Source Code

;; Defined in ~/.emacs.d/elpa/hydra-20250316.1254/hydra.el
(defun hydra--call-interactively-remap-maybe (cmd)
  "`call-interactively' the given CMD or its remapped equivalent.
Only when `hydra-look-for-remap' is non nil."
  (let ((remapped-cmd (if hydra-look-for-remap
                          (command-remapping `,cmd)
                        nil)))
    (if remapped-cmd
        (call-interactively `,remapped-cmd)
      (call-interactively `,cmd))))