nhooks
nhooks copied to clipboard
To implement hook listing as a command/function, one'd need to go through all the slots and variables and find those that are nhooks:hook-typed, which not all of the hooks are...
In https://github.com/atlas-engineer/nyxt/pull/2451 we are manually replacing the existing setter handler. This is most certainly something that `nhooks` should do for us by default. One possible fix is to change `equals`...
We don't get anything out of it, it seems -- adding anonymous function objects won't work because they don't have a name, and for named function, one can just add...
Currently, `(equals (lambda () 1) (lambda () 2))` returns `T`, which means each hook could have at most one anonymous handler. Is this intended behavior?