~a-roehler/python-mode/XEmacs-compat-test

« back to all changes in this revision

Viewing changes to devel/python-shell-install-example-buffer.el

  • Committer: Andreas Roehler
  • Date: 2012-01-25 20:31:09 UTC
  • Revision ID: andreas.roehler@online.de-20120125203109-cfag2pbgyrxyh3xa
renamed: tools/ => devel/

make visible these files are not for common usage











Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; Commands calling installed python shells generated by python-mode's python-mode-shell-install.el.
 
2
;; Install these commands, to get it loaded next time python-mode starts.
 
3
;; Copying it onto the end of python-mode-shell-install.el should do it. 
 
4
 
 
5
(defun ipython (&optional argprompt)
 
6
  "Start an interactive Ipython interpreter in another window.
 
7
   With optional \\[universal-argument] user is prompted
 
8
    for options to pass to the Ipython interpreter. "
 
9
  (interactive)
 
10
  (let ((py-shell-name "ipython"))
 
11
    (py-shell argprompt)))
 
12
 
 
13
(defun python2 (&optional argprompt)
 
14
  "Start an interactive Python2 interpreter in another window.
 
15
   With optional \\[universal-argument] user is prompted
 
16
    for options to pass to the Python2 interpreter. "
 
17
  (interactive)
 
18
  (let ((py-shell-name "python2"))
 
19
    (py-shell argprompt)))
 
20
 
 
21
(defun python3 (&optional argprompt)
 
22
  "Start an interactive Python3 interpreter in another window.
 
23
   With optional \\[universal-argument] user is prompted
 
24
    for options to pass to the Python3 interpreter. "
 
25
  (interactive)
 
26
  (let ((py-shell-name "python3"))
 
27
    (py-shell argprompt)))
 
28
 
 
29
(defun python2.7 (&optional argprompt)
 
30
  "Start an interactive Python2.7 interpreter in another window.
 
31
   With optional \\[universal-argument] user is prompted
 
32
    for options to pass to the Python2.7 interpreter. "
 
33
  (interactive)
 
34
  (let ((py-shell-name "python2.7"))
 
35
    (py-shell argprompt)))
 
36
 
 
37
(defun python (&optional argprompt)
 
38
  "Start an interactive Python interpreter in another window.
 
39
   With optional \\[universal-argument] user is prompted
 
40
    for options to pass to the Python interpreter. "
 
41
  (interactive)
 
42
  (let ((py-shell-name "python"))
 
43
    (py-shell argprompt)))
 
44
 
 
45
(defun jython (&optional argprompt)
 
46
  "Start an interactive Jython interpreter in another window.
 
47
   With optional \\[universal-argument] user is prompted
 
48
    for options to pass to the Jython interpreter. "
 
49
  (interactive)
 
50
  (let ((py-shell-name "jython"))
 
51
    (py-shell argprompt)))
 
52