-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
[Support]: How to correctly add a hook in a use-package
declaration with Elpaca
#183
Comments
The syntax for the hook is incorrect. (use-package evil-org-mode
:hook (org-mode . evil-org-mode))
Not an Elpaca issue. As a side note: |
Sorry. Thank you. |
Not a problem. For what it's worth, I tested the suggested config I wrote in my previous comment and evil-org was properly enabled in Org files. I suggest opening a bug with evil-org to update that part of their docs. |
Will do soon. |
Oh, it turns out someone already made this PR: Somelauw/evil-org-mode#110 |
Can confirm that your method works, however. |
The wrapping lambda is unnecessary. It's also better to add a named function to a hook vs a lambda. See the rationale here: https://www.gnu.org/software/emacs/manual/html_node/elisp/Setting-Hooks.html So I'd stick with directly adding the mode's command. |
Confirmation
Elpaca Version
Elpaca 9a130c0 HEAD -> master, origin/master, origin/HEAD
installer: 0.5
emacs-version: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8)
git --version: git version 2.42.0
Operating System
Meowix Linux x86_64
Description
I'm trying to install
evil-org
with Elpaca anduse-package
. This block of code is in my configuration, slightly edited from the README:From my understanding, the line
:hook (org-mode . (lambda () evil-org-mode))
is supposed to runevil-org-mode
when an Org document is opened. However, this is unfortunately not working for me. The command did not seem to be ran and theEvilOrg
minor mode launched by this command did not activate automatically either. When I manually runM-x evil-org-mode
, the minor mode activates as expected.What am I doing wrong? Is this unsupported in Elpaca?
The text was updated successfully, but these errors were encountered: