There used to be some elisp in Twisted, called something like twisted-dev-mode.el (written, I think, by Glyph or JP). That added a find-file-hook based on the prefix of the path of the file you were about to edit. I still use it, and some small modifications, for a customized dev mode in various projects. That code could be dug up, or maybe it's still in Twisted (I took a quick look, didn't see it). Actually, this is probably it - https://launchpad.net/twisted-emacs
Terry On Tue, Feb 9, 2016 at 1:26 PM, Tristan Seligmann <mithra...@mithrandi.net> wrote: > The 'python-mode-hook is just a function, so you can put whatever code you > want in there. I'm not sure exactly what the best mechanism to control this > would be, though; maybe a directory variable? > > On Tue, 9 Feb 2016 at 15:17 Jonathan Lange <j...@mumak.net> wrote: > >> Thanks! https://launchpad.net/twisted-emacs is the best I could find re >> PRs. >> >> Do you have a way to make this conditional? There's precisely one Python >> project where I care about using the twistedchecker linter :) >> >> >> On Tue, 9 Feb 2016 at 07:12 Tristan Seligmann <mithra...@mithrandi.net> >> wrote: >> >>> You may find this to be of use: >>> >>> https://gist.github.com/mithrandi/15fca4367e878b6b88cd >>> >>> Is there somewhere I should be submitting this as a PR or something? (I >>> guess I could release the checker as an emacs package, it's somewhat >>> specific though) >>> >> _______________________________________________ >>> Twisted-Python mailing list >>> Twisted-Python@twistedmatrix.com >>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >>> >> _______________________________________________ >> Twisted-Python mailing list >> Twisted-Python@twistedmatrix.com >> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python >> > > _______________________________________________ > Twisted-Python mailing list > Twisted-Python@twistedmatrix.com > http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python > >
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python