* mmm-mode, python-mode and doctest-mode?
@ 2005-11-30 17:43 John J Lee
0 siblings, 0 replies; only message in thread
From: John J Lee @ 2005-11-30 17:43 UTC (permalink / raw)
Cc: python-list, help-gnu-emacs
Is it possible to get doctest-mode to work with mmm-mode and python-mode
nicely so that docstrings containing doctests are editable in
doctest-mode?
In my utter e-lisp ignorance, I tried this:
(require 'mmm-auto)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'(
(doctest
:submode doctest-mode
:front "\"\"\""
:back "\"\"\"")))
(mmm-add-mode-ext-class nil "\\.py$" 'doctest)
That has the following problems:
- Fails to set the background colour of the doctest-mode regions to the
default mmm-mode gray (as documented by mmm-mode - and observed for
another mmm class I have). Maybe an interaction with python-mode?
- Confuses python-mode: the face of docstrings sometimes fluctuates from
second to second between the string face and the face of ordinary text
(I assume the former face is python-mode's string face and the latter face
is the doctest-mode English-text face)!
Any tips appreciated!
John
--
http://mail.python.org/mailman/listinfo/python-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-30 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 17:43 mmm-mode, python-mode and doctest-mode? John J Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).