- auto-mode A List (matches the filename with a MajorMode when file is first opened)
- interpreter-mode A List (associates interpreter name with a MajorMode)
(cons '("\\.py$" . python-mode) auto-mode-alist))
(setq interpreter-mode-alist
(cons '("python" . python-mode)
interpreter-mode-alist))
(autoload 'python-mode "python-mode" "Python editing mode." t)
python-mode.el does some pretty cool things like:
- set the default number of spaces for a tab in Python (where indentation is clearly important)
"*Amount of offset per level of indentation.
`\\[py-guess-indent-offset]' can usually guess a good value when
you're editing someone else's Python code."
:type 'integer
:group 'python)
- Parse classes and functions in the source file and display in the IM-Python menu item
No comments:
Post a Comment