##// END OF EJS Templates
Fix some whitespace, and use lisp highlightling for emacs code
Thomas Kluyver -
Show More
@@ -158,7 +158,9 b' new requests are handled by the original process. This means that almost no'
158 time is spent in handling the request (assuming an Emacs process is already
158 time is spent in handling the request (assuming an Emacs process is already
159 running). For this to work, you need to set your EDITOR environment variable
159 running). For this to work, you need to set your EDITOR environment variable
160 to 'emacsclient'. The code below, supplied by Francois Pinard, can then be
160 to 'emacsclient'. The code below, supplied by Francois Pinard, can then be
161 used in your :file:`.emacs` file to enable the server::
161 used in your :file:`.emacs` file to enable the server:
162
163 .. code-block:: common-lisp
162
164
163 (defvar server-buffer-clients)
165 (defvar server-buffer-clients)
164 (when (and (fboundp 'server-start) (string-equal (getenv "TERM") 'xterm))
166 (when (and (fboundp 'server-start) (string-equal (getenv "TERM") 'xterm))
@@ -181,7 +183,9 b' currently (X)Emacs and IPython get along very well in other ways.'
181
183
182 The file :file:`ipython.el` is included with the IPython distribution, in the
184 The file :file:`ipython.el` is included with the IPython distribution, in the
183 directory :file:`docs/emacs`. Once you put these files in your Emacs path, all
185 directory :file:`docs/emacs`. Once you put these files in your Emacs path, all
184 you need in your :file:`.emacs` file is::
186 you need in your :file:`.emacs` file is:
187
188 .. code-block:: common-lisp
185
189
186 (require 'ipython)
190 (require 'ipython)
187
191
@@ -190,12 +194,16 b' IPython, opening IPython as your Python shell via ``C-c !``, etc.'
190
194
191 You can customize the arguments passed to the IPython instance at startup by
195 You can customize the arguments passed to the IPython instance at startup by
192 setting the ``py-python-command-args`` variable. For example, to start always
196 setting the ``py-python-command-args`` variable. For example, to start always
193 with ``matplotlib`` integration and hardcoded light-background colors, you can use::
197 with ``matplotlib`` integration and hardcoded light-background colors, you can use:
198
199 .. code-block:: common-lisp
194
200
195 (setq py-python-command-args '("--matplotlib" "--colors" "LightBG"))
201 (setq py-python-command-args '("--matplotlib" "--colors" "LightBG"))
196
202
197 If you happen to get garbage instead of colored prompts as described in
203 If you happen to get garbage instead of colored prompts as described in
198 the previous section, you may need to set also in your :file:`.emacs` file::
204 the previous section, you may need to set also in your :file:`.emacs` file:
205
206 .. code-block:: common-lisp
199
207
200 (setq ansi-color-for-comint-mode t)
208 (setq ansi-color-for-comint-mode t)
201
209
General Comments 0
You need to be logged in to leave comments. Login now