Doctest Mode: Customization


doctest-mode defines a large number of variables that can be used to customize its behavior. To view or edit these variables, run "meta-x customize-group doctest". Some of the more commonly modified customization variables are:

  • doctest-python-command: The shell command used to start the Python interpreter. (default="python")
  • doctest-optionflags: The option flags that should be passed to DocTestRunner when running doctest. E.g., NORMALIZE_WHITESPACE and ELLIPSIS. See the doctest documentation for more information. (default=0; requires python 2.4+.)
  • default-margin: The default pre-prompt margin for doctest examples. (default=4)