Function: hywiki-init

hywiki-init is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-init)

Documentation

Initialize HyWiki settings but don't enable the HyWiki minor mode.

Use (hywiki-mode hywiki-default-mode) for that.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20261030.2317/hywiki.el
;;; ************************************************************************
;;; Initializations
;;; ************************************************************************

(defun hywiki-init ()
  "Initialize HyWiki settings but don't enable the HyWiki minor mode.
Use (hywiki-mode hywiki-default-mode) for that."

  ;; Private initializations

  ;; Must be set after `hywiki-get-buttonize-characters' is defined
  (unless hywiki--buttonize-character-regexp
    (setq hywiki--buttonize-character-regexp
	  (concat "\\([]["
		  (regexp-quote (concat "()<>{}\"' \t\r\n"
                                        (hywiki-get-buttonize-characters)))
		  "]\\|$\\)")
	  hywiki--word-and-buttonize-character-regexp
	  (concat "\\(" hywiki-word-with-optional-suffix-regexp "\\)"
		  hywiki--buttonize-character-regexp)))

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

  ;; Public initializations

  (add-hook 'kill-buffer-hook 'hywiki-kill-buffer-hook)

  ;; Use for its side effects, setting variables
  (eval-after-load "ox-publish" '(hywiki-org-get-publish-project))

  ;; Ensure HyWiki referent lookup table is initialized as are HyWiki
  ;; Org Publish settings.
  (hywiki-set-directory 'hywiki-directory hywiki-directory))