python - How to get emacs to ignore the shebang (#!/some/interpreter) when determining what mode to open a file -
I am editing python files that are intended to be executed by Jethon so that they are useful Shebang at the top of the file:
#! / Usr / bin / jython This results in files being opened in Geithan-mode. However, I want to use Python-mode. In addition to removing the Shebang and returning the buffer, I can not take the buffer out in Python mode and out of Jean-Mode. Even running Python-mode does not complete it (the buffer is still in jethan-mode). Can I put some types of hooks to ignore Shebang for .i files? If it matters, then I am using emacs-22.
Add the following to your .emacs : See the documentation for (delq (assoc "jython" interpreter-mode-bye) interpreter-mode-alest) . Or you can use a heavy hammer and get rid of Shebang completely tackling:
(setq interpreter-mode-alist noil) < / Div>
Comments
Post a Comment