Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydra with inheritance in use-package #387

Open
MagicRB opened this issue Nov 1, 2020 · 1 comment
Open

Hydra with inheritance in use-package #387

MagicRB opened this issue Nov 1, 2020 · 1 comment

Comments

@MagicRB
Copy link

MagicRB commented Nov 1, 2020

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.

@CastixGitHub
Copy link

try with :demand t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants