Commit c1d6d597 authored by Barry Warsaw's avatar Barry Warsaw

(py-python-command-args): New variable, allows user to customize the

arguments past to py-python-command when invoking the Python shell.
parent 0c047242
...@@ -139,6 +139,11 @@ See the Python Mode home page for details: ...@@ -139,6 +139,11 @@ See the Python Mode home page for details:
:type 'string :type 'string
:group 'python) :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 (defcustom py-indent-offset 4
"*Amount of offset per level of indentation "*Amount of offset per level of indentation
Note that `\\[py-guess-indent-offset]' can usually guess a good value Note that `\\[py-guess-indent-offset]' can usually guess a good value
...@@ -1148,7 +1153,7 @@ filter." ...@@ -1148,7 +1153,7 @@ filter."
(interactive) (interactive)
(require 'comint) (require 'comint)
(switch-to-buffer-other-window (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) (make-local-variable 'comint-prompt-regexp)
(setq comint-prompt-regexp "^>>> \\|^[.][.][.] ") (setq comint-prompt-regexp "^>>> \\|^[.][.][.] ")
(set-process-filter (get-buffer-process (current-buffer)) 'py-process-filter) (set-process-filter (get-buffer-process (current-buffer)) 'py-process-filter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment