drothlis / pretty-symbols

Emacs minor mode for drawing multi-character tokens as Unicode glyphs (lambda -> λ). A configurable replacement for pretty-mode and the like.
42 stars 5 forks source link

prettification in inferior-python-mode #5

Closed mankoff closed 11 years ago

mankoff commented 11 years ago

I'm using a minor mode in some buffers and pretty-symbols-mode does not appear to work there. Specifically, I use elpy https://github.com/jorgenschaefer/elpy/ and IPython.

In the IPython buffer, M-x describe-mode says "Inferior Python". The mode is loaded according to that documentation, and I see a λ in the modeline.

It looks from the source that != should be a global replacement for all @c-like languages. Yet there is no prettification in this buffer.

drothlis commented 11 years ago

inferior-python-mode isn't the same as python-mode. Try enabling pretty-symbols-mode manually and let me know if it works.

If it doesn't, maybe it's because inferior-python-mode doesn't use font-lock (pretty-symbols-mode only works when font-lock-mode is enabled).

mankoff commented 11 years ago

Both are enabled, or at least if I do M-x pretty-symbols-mode the minibuffer reports that it is now 'disabled'. Same for font-lock-mode. Does 'inferior-python-mode' need to be explicitly added to the list of c-like languages, and if so, can I do this from my init.el or should I edit the source?

drothlis commented 11 years ago

Fixed in fc49af3d. Thanks!