I can use preview-latex successfully on any Tex buffer, and it works great.
I was wondering how I can enable previewing capability for any mode, such as Fundamental, or any other programming language modes. I tried this, and I get
TeX-region-create: Wrong type argument: stringp, nil
I am especially interested in having this work for Ein mode, the ipython notebook mode. I tried previewing in this mode as well, and I get a complaint from Ein saying that the point at I am at is read-only.
http://tkf.github.com/emacs-ipython-notebook/
Thanks,