Skip to content

bug: hywiki-directory is created at ~/hywiki even when customized via setq or custom-set-variables #1023

Description

@o-rwx

Description

The hywiki-directory variable cannot be customized to an alternate path (e.g., inside ~/.tmp/) during Emacs startup. Even when explicitly configured by the user, Hyperbole still creates the default ~/hywiki/ directory in the user's home folder upon initialization.

Environment

  • Emacs Version: 30+
  • Hyperbole Version: Latest (installed via Elpaca package manager)

Steps to Reproduce & What I Have Tried

I am trying to move the HyWiki directories to a temporary location using the following configuration styles, but all of them fail to prevent the creation of ~/hywiki/:

  1. Attempt with setq inside the package declaration:
(elpaca hyperbole
  (setq hywiki-directory "~/.tmp/hywiki/"
        hywiki-org-publishing-directory "~/.tmp/public/")
  (hyperbole-mode 1))
  1. Attempt with setq-default:
(elpaca hyperbole
  (setq-default hywiki-directory "~/.tmp/hywiki/")
  (setq-default hywiki-org-publishing-directory "~/.tmp/public/")
  (hyperbole-mode 1))
  1. Attempt with customize-set-variable after load:
(with-eval-after-load 'hyperbole
  (customize-set-variable 'hywiki-directory "~/.tmp/hywiki/")
  (hywiki-mode :all))
  1. Attempt setting global variables absolute-first (before package manager initialization):
(setq hywiki-directory "~/.tmp/hywiki/")
(elpaca hyperbole (hyperbole-mode 1))

In every single scenario, deleting ~/hywiki/ from the terminal and restarting Emacs results in the folder ~/hywiki/ being automatically recreated on startup.

Expected Behavior

Hyperbole should respect hywiki-directory user configurations set via standard Emacs mechanisms (setq, custom-set-variable) prior to or during package load, without creating the default directory at ~/hywiki/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions