this post was submitted on 28 Oct 2023
2 points (100.0% liked)
Emacs
311 readers
3 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Why did you add
:after general
? I use:general
in many of myuse-package
forms, but never have I added that.hmmm... without it I assumed I would get an error about unrecognized keyword. In any case, I tried this configuration again and I am getting the same error.
```Error (use-package): Failed to parse package elfeed: use-package: Unrecognized keyword: :general```
(Regardless of whether I use `:after general`)
I found an old post from you (https://www.reddit.com/r/emacs/comments/ogiiyp/in_2021_what_is_the_state_of_the_art_in_emacs/), and I tried the following, and it worked! Thanks a ton!!!
(use-package elfeed :config (leader-key "w" #'elfeed))
where
leader-key
is a key definer created usinggeneral-create-definer
But I don't know why :general does not work in my config.
Ah.... made a mistake! It does not work.
:config only fires after the package is loaded, but this key binding in :config is the one loading the package. Bad! For now, moved these bindings to :config of general.
It would be nice if I can figure out why :general does not work with use-package.