Closed jstaursky closed 5 years ago
Indeed, as the package is not named with the -mode
suffix, I would expect the second form to be the correct one.
Was the 1st form recommended somewhere?
yeah take a look at the hooks section of use-package you can see the mention of them being equivalent.
For example he shows ace-jump-mode
being hooked from prog-mode
and text-mode
(use-package ace-jump-mode
:hook (prog-mode text-mode))
This is equivalent to
(use-package ace-jump-mode
:hook ((prog-mode . ace-jump-mode)
(text-mode . ace-jump-mode)))
Irony currently needs to use the second form in order to work.
Admittedly this is a minor gripe but if a quick fix is possible, I'd prefer to use the less verbose version.
Well, I have the feeling that for this to work, irony would have to be renamed irony-mode. Maybe we should ask the use-package project if that is correct.
When I looked whether or not the package should be named irony or irony-mode, I concluded that it should be irony for some reasons, which I don't remember now. But it is something we can see on some famous packages too, such as company or flycheck.
Was thinking that might be the case as well, but was hoping otherwise. Seems like it would be a pretty noticeable oversight to miss though, hard to think he would not have considered such a use case. Suppose I'll open an issue on use-package. Thanks
Minor issue but took me a minute to notice If you try and do the following with
use-package
there is an errorBut if you do the following--which is supposed to be equivalent according to the main pg of use-package--there is no error.
Note how in one version
irony-mode
is spelled out but not with the other--I think use-package expects the package name to match with the mode name.