Function: hywiki--org-set-heading-regexp

hywiki--org-set-heading-regexp is a byte-compiled function defined in hywiki.el.

Signature

(hywiki--org-set-heading-regexp)

Documentation

Includes all custom todo keywords defined in hywiki-directory in regexp.

Initializes hywiki--org-todo-regexp and hywiki--org-heading-regexp.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki--org-set-heading-regexp ()
  "Includes all custom todo keywords defined in `hywiki-directory' in regexp.
Initializes `hywiki--org-todo-regexp' and `hywiki--org-heading-regexp'."
  (setq hywiki--org-todo-regexp (hywiki-org-directory-todo-regexp hywiki-directory)
        hywiki--org-heading-regexp
        ;; org-complex-heading-regexp + custom todo keywords
        (concat
         ;; Make leading asterisks optional since (org-get-heading) may have
         ;; already removed them.
         "^\\(\\*+[ \t]+\\)?"
         ;; optional todo keyword
	 "\\(?:" hywiki--org-todo-regexp "\\)?"
         ;; optional priority
	 "\\(?:[ \t]*\\(\\[#.\\]\\)\\)?"
         ;; optional title and stats
	 "\\(?:[ \t]*\\(.*?\\)\\)??"
         ;; optional tags
	 "\\(?:[ \t]*\\(:[[:alnum:]_@#%:]+:\\)\\)?"
	 "[ \t]*$")))