Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. (autoload 'python-mode "python-mode" "Python Mode." t)
  2. (add-to-list 'auto-mode-alist '("\.py\'" . python-mode))
  3. (add-to-list 'interpreter-mode-alist '("python" . python-mode))
  4.  
  5. ;; by default, the function 'python-mode is associated with
  6. ;; the package python.el. The following changes that to python-mode.el:
  7. (autoload 'python-mode "python-mode" "Python Mode." t)
  8.  
  9. ;; open py files with python-mode
  10. (add-to-list 'auto-mode-alist '("\.py\'" . python-mode))
  11.  
  12. ;; sets python interpreter mode to be python-mode
  13. (add-to-list 'interpreter-mode-alist '("python" . python-mode))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement