File: INSTALL

package info (click to toggle)
python-mode 1%3A6.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,440 kB
  • ctags: 3,272
  • sloc: lisp: 32,583; sh: 1,418; python: 757; makefile: 41
file content (24 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Put the respective lines into your Emacs initialisation file:

(add-to-list 'load-path "PATH/TO/PYTHON-MODE/") 
(setq py-install-directory "PATH/TO/PYTHON-MODE/")
(require 'python-mode)

To change the Python default shell use 

M-x customize-variable py-shell-name 

or write 

(setq py-shell-name "MY-PYTHON")
resp.
(setq py-shell-name "PATH/TO/MY-PYTHON")

IPython users for example may insert "ipython" with
M-x customize-variable py-shell-name 

or in init-file

(setq py-shell-name "ipython")
resp.
(setq py-shell-name "PATH/TO/ipython")