8000 Hydra with inheritance in use-package · Issue #387 · abo-abo/hydra · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Hydra with inheritance in use-package #387
Open
@MagicRB

Description

@MagicRB

Problem

When I declare my hydra in use-package,

(use-package hydra
  :ensure t
  :config
  (defhydra magic_rb/hydra-base (:color red :body-pre (setq hydra-stack nil))
    ("s" treemacs-switch-workspace)
    ...
    ("m" magit))
  (defhydra magic_rb/hydra-rust (:color red :inherit (magic_rb/hydra-base/heads))
    ("r" (progn
  	 (magic_rb/hydra-rust-sub/body)
  	 (hydra-push '(magic_rb/hydra-launcher)))
     "visit magic_rb/hydra-rust-sub" :color teal)
    ("e" lsp-execute-code-action)))

the derived hydra doesn't get declared, until I eval the use package again. If I run emacs with --debug-init I get (void-variable magic_rb/hydra-base/heads). If I run emacs normally, no error is generated, it fails silently.

What I tried

I tried using progn to merge all the forms into one, didn't help.

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

      0