It seems your function only finds files called `Snakefile`, right? So no matter what I set the dir functions to it would not work in my case. My original graph functions just took the absolute path of the file visited by the buffer, which is what I would want in 100% of cases. Perhaps you (or I) could add some similar capability with an interactive function (`snakemake-create-dag(/rulegraph)-for-this-file`)? --- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/11#issuecomment-211507107