Skip to content

Commit

Permalink
Explicitly require hydra package
Browse files Browse the repository at this point in the history
I have noticed that, on some versions of Emacs, requiring `worf` fails with a void-variable error on `hydra-worf-change`. 
This user here abo-abo/pamparam#34 also seems to be getting the same error.

I do not fully understand why, but adding `(require 'hydra)` to the `worf.el` file has completely fixed this issue for me.
Please feel free to just close this PR if you want, as I'm not able to give a good justification of why this works.
  • Loading branch information
leotaku authored Sep 4, 2021
1 parent aab516c commit 38e901d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worf.el
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
(require 'ace-link)
(require 'dired)
(require 'flyspell)
(require 'hydra)
(require 'org)
(require 'org-agenda)
(require 'org-attach)
Expand Down

2 comments on commit 38e901d

@philohistoria
Copy link

@philohistoria philohistoria commented on 38e901d Jun 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the solution! It solved my problem.

@whudwl
Copy link

@whudwl whudwl commented on 38e901d Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran into this issue after switching from bleeding edge with nativecomp to stable 29.1 without nativecomp.
I've solved it by telling straight.el not to compile worf:

(use-package worf
  :straight (:build (:not compile))

Please sign in to comment.