Function: org-roam-dailies--daily-note-p

org-roam-dailies--daily-note-p is a byte-compiled function defined in org-roam-dailies.el.

Signature

(org-roam-dailies--daily-note-p &optional FILE)

Documentation

Return t if FILE is an Org-roam daily-note, nil otherwise.

If FILE is not specified, use the current buffer's file-path.

Source Code

;; Defined in ~/.emacs.d/elpa/org-roam-20260224.1637/org-roam-dailies.el
(defun org-roam-dailies--daily-note-p (&optional file)
  "Return t if FILE is an Org-roam daily-note, nil otherwise.
If FILE is not specified, use the current buffer's file-path."
  (when-let* ((path (expand-file-name
                     (or file
                         (buffer-file-name (buffer-base-buffer)))))
              (directory (expand-file-name org-roam-dailies-directory org-roam-directory)))
    (setq path (expand-file-name path))
    (save-match-data
      (and
       (org-roam-file-p path)
       (org-roam-descendant-of-p path directory)))))