I observed that directory local variables, defined in
.dir-locals.el, are set for files, dired-buffers, new buffers, but not for
eshell buffers (well, that is also the case for buffers generated with
generate-new-buffer and surely a ton of other similar functions).
My question now is, how would I trigger the search and evaluation of
.dir-locals.el, so I could do this in an around advice? Or can I somehow enable it for