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

Emacs 30: failed to define function eldoc-box-mode #121

Open
lycheeje11y opened this issue Feb 3, 2025 · 5 comments
Open

Emacs 30: failed to define function eldoc-box-mode #121

lycheeje11y opened this issue Feb 3, 2025 · 5 comments

Comments

@lycheeje11y
Copy link

I'm on emacs 30, and I get this error:

eldoc-box-hover-mode: Autoloading file /home/lycheejelly/.config/emacs/straight/build/eldoc-box/eldoc-box.elc failed to define function eldoc-box-mode

Here's my config regarding this package (using straight):

(use-package eldoc-box
  :straight (:build t :type git :host github :repo "casouri/eldoc-box")
  :defer t
  :after eglot
  :init (require 'eldoc-box)
  :hook ('eglot-managed-mode-hook #'eldoc-box-hover-mode))

Let me know if you need any other information.

@casouri
Copy link
Owner

casouri commented Feb 3, 2025

Intriguing. Eli's-box does define a eldoc-box mode anywhere in the source code. Have you tried loading the package with vanilla eMacs?

@lycheeje11y
Copy link
Author

Sorry new to emacs here. How would I do this?

@casouri
Copy link
Owner

casouri commented Feb 3, 2025

Ah, vanilla emacs is just emacs without any user config or packages. You can start one with emacs -q. Then, load eldoc-box and see if you get the same error. This will tell us whether the error is caused by some user config or some other package.

@lycheeje11y
Copy link
Author

I suppose this means that something is going wrong with my user config?
Image

@casouri
Copy link
Owner

casouri commented Feb 5, 2025

If you didn't see any error with vanilla Emacs, yes, probably something with your config. To start with, maybe try grepping for eldoc-box-mode in your config?

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