Function: hsys-consult--org-roam-call-function

hsys-consult--org-roam-call-function is a byte-compiled function defined in hsys-consult.el.

Signature

(hsys-consult--org-roam-call-function FUNC)

Documentation

Install Org Roam if necessary and then call an Org Roam FUNC.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hsys-consult.el
(defun hsys-consult--org-roam-call-function (func)
  "Install Org Roam if necessary and then call an Org Roam FUNC."
  (unless hsys-consult-flag
    (error "`%s' command requires `hsys-consult-flag' set to t" this-command))
  (unless (package-installed-p 'org-roam)
    (package-install 'org-roam))
  (require 'org-roam)
  (unless (file-readable-p org-roam-directory)
    (make-directory org-roam-directory))
  (unless org-roam-db-autosync-mode
    (org-roam-db-autosync-mode))

  (if (file-readable-p org-roam-directory)
      (funcall func)
    (error "`org-roam-directory', \"%s\", does not exist" org-roam-directory)))