summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1998-02-05 20:45:49 (GMT)
committerBarry Warsaw <barry@python.org>1998-02-05 20:45:49 (GMT)
commit8f972b762a7e378acb3660f8d11b7e2808602f06 (patch)
tree5fe8486d855a1f8d0efc13f12a10de18ded01724 /Misc
parentafcd58902754328a1c6e7b52e52cbb23801be019 (diff)
downloadcpython-8f972b762a7e378acb3660f8d11b7e2808602f06.zip
cpython-8f972b762a7e378acb3660f8d11b7e2808602f06.tar.gz
cpython-8f972b762a7e378acb3660f8d11b7e2808602f06.tar.bz2
(py-python-command-args): New variable, allows user to customize the
arguments past to py-python-command when invoking the Python shell.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/python-mode.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 1cff2d9..79ca83b 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -139,6 +139,11 @@ See the Python Mode home page for details:
:type 'string
:group 'python)
+(defcustom py-python-command-args '("-i")
+ "*List of string arguments to be used when starting a Python shell."
+ :type '(repeat string)
+ :group 'python)
+
(defcustom py-indent-offset 4
"*Amount of offset per level of indentation
Note that `\\[py-guess-indent-offset]' can usually guess a good value
@@ -1148,7 +1153,7 @@ filter."
(interactive)
(require 'comint)
(switch-to-buffer-other-window
- (make-comint "Python" py-python-command nil "-i"))
+ (apply 'make-comint "Python" py-python-command nil py-python-command-args))
(make-local-variable 'comint-prompt-regexp)
(setq comint-prompt-regexp "^>>> \\|^[.][.][.] ")
(set-process-filter (get-buffer-process (current-buffer)) 'py-process-filter)