80-python.el 839 B

12345678910111213141516171819
  1. ;;; python-mode site-lisp configuration
  2. (add-to-list 'load-path "/usr/share/emacs/site-lisp/python/")
  3. (autoload 'python-mode "python-mode" "Python editing mode." t)
  4. (autoload 'jython-mode "python-mode" "Python editing mode." t)
  5. (autoload 'py-shell "python-mode" "Start an interactive Python interpreter in another window." t)
  6. (autoload 'doctest-mode "doctest-mode" "Editing mode for Python Doctest examples." t)
  7. (autoload 'py-complete "pycomplete" "Complete a symbol at point using Pymacs." t)
  8. (add-to-list 'auto-mode-alist '("\\.py$" . python-mode))
  9. (add-to-list 'auto-mode-alist '("\\.doctest$" . doctest-mode))
  10. (add-to-list 'interpreter-mode-alist '("python" . python-mode))
  11. (add-to-list 'interpreter-mode-alist '("jython" . jython-mode))
  12. ;; Add menu
  13. (require 'easymenu)
  14. (easy-menu-add-item nil '("tools") ["PYTHON" python-mode t])