Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use new command line syntax for colors

  • Loading branch information...
commit d2d967af9de6081c8cdbab0eab1115164e5e72bd 1 parent 7b26cae
Pedro Kroger authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 docs/emacs/ipython.el
View
20 docs/emacs/ipython.el
@@ -36,7 +36,7 @@
;; always in ``pylab`` mode with hardcoded light-background colors, you can
;; use::
;;
-;; (setq py-python-command-args '("-pylab" "--colors" "LightBG"))
+;; (setq py-python-command-args '("-pylab" "--colors=LightBG"))
;;
;;
;; NOTE: This mode is currently somewhat alpha and although I hope that it
@@ -220,14 +220,14 @@ the second for a 'normal' command, and the third for a multiline command.")
(unless (member "--colors" py-python-command-args)
(setq py-python-command-args
(nconc py-python-command-args
- (list "--colors"
- (cond
- ((eq frame-background-mode 'dark)
- "Linux")
- ((eq frame-background-mode 'light)
- "LightBG")
- (t ; default (backg-mode isn't always set by XEmacs)
- "LightBG"))))))
+ (list (concat "--colors="
+ (cond
+ ((eq frame-background-mode 'dark)
+ "Linux")
+ ((eq frame-background-mode 'light)
+ "LightBG")
+ (t ; default (backg-mode isn't always set by XEmacs)
+ "LightBG")))))))
(unless (equal ipython-backup-of-py-python-command py-python-command)
(setq ipython-backup-of-py-python-command py-python-command))
(setq py-python-command ipython-command))
@@ -351,7 +351,7 @@ in the current *Python* session."
(process-send-string python-process
(format ipython-completion-command-string pattern))
(accept-process-output python-process)
-
+
;(message (format "DEBUG return: %s" ugly-return))
(setq completions
(split-string (substring ugly-return 0 (position ?\n ugly-return)) sep))
Please sign in to comment.
Something went wrong with that request. Please try again.