Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have files which are not .py but they are python code. I want to highlight them as if they were python files. How can I do that.
If the file extension is .bzl, then you can do this:
(add-to-list 'auto-mode-alist '("\\.bzl\\'" . python-mode))
Required, but never shown