wasamasa / nov.el

Major mode for reading EPUBs in Emacs
GNU General Public License v3.0
654 stars 34 forks source link

should support .dir-locals.el #53

Closed GregorZattler closed 5 years ago

GregorZattler commented 5 years ago

It would be helpful if nov.el would evaluate a .dir-locals.el file. I use this e.g. to set up dictionary lookup for my ebooks.

Thanks for nov.el it's really useful.

wasamasa commented 5 years ago

Interesting usecase. The fix is as easy as adding hack-dir-local-variables-non-file-buffer (I'm not making this up) to nov-mode-hook. Several other modes in Emacs do this, so I've added it to nov.el as well.

GregorZattler commented 5 years ago

Hi Vasilij,

works like a charm. Thank you very much!

Ciao; Gregor

-... --- .-. . -.. ..--.. ...-.-