Function: dune-find-dominating

dune-find-dominating is an interactive and natively compiled function defined in dune.el.

Signature

(dune-find-dominating)

Documentation

Find dominating dune file.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/ai4i12v8z13z6l9irpjcha90driqcxbb-emacs-packages-deps/share/emacs/site-lisp/elpa/dune-20260803.1048/dune.el
;;;###autoload
(defun dune-find-dominating ()
  "Find dominating dune file."
  (interactive)
  (if-let* ((dune-file-dir (locate-dominating-file "." "dune"))
            (dune-file (concat dune-file-dir "dune")))
      (progn
        (xref-push-marker-stack)
        (find-file dune-file))
    (error "Found no dune file dominating %s" default-directory)))