Often times, there may be little additions that you would like to include with your Emacs package but aren’t necessarily large or significant enough to warrant their own package. For example, Marginalia annotations. I wouldn’t want a dependency for this and this is often only a handful of lines of Elisp and not seem worthy of a package, but also find the too useful to not include and encourage others to use.
Documentation snippet
One solution is to just include the small snippet in the documentation somewhere, which I have done for some things. The down side to this is it makes it harder to keep up to date since it’s not in an easy place to automatically evaluate and test.
Unpublished package
Alternatively, you can write an entire package and publish the repository, but not list it in a package repository. This is nice, since it allows the user to include the package however they like.
Extensions directory
I know some packages like Vertico include an extensions/
directory for this kind of stuff. This seems to be the best solution I’ve seen, but I find the recipe syntax to include the extension clumsy and difficult to remember.
(Dream) Recipe support
It would be nice if there was some official recipe support to minor package extensions without bogging down the wonderful package repository maintainers, but I suppose that’s really up to the package managers themselves to implement new syntax. Something like:
(vertico :extensions ("vertico-buffer.el"))
Anyway, I’m curious what y’all think. Do you think this is even a problem? What is your opinion on how to handle small package extensions? Or am I overlooking something entirely?