TeMPOraL / nyan-mode

Nyan Cat for Emacs! Nyanyanyanyanyanyanyanyanyan!
GNU General Public License v3.0
794 stars 68 forks source link

Support lack of XPM support. #22

Closed mlb- closed 8 years ago

mlb- commented 9 years ago

On my MacBook Air, running 10.10.2, with emacs installed via brew cask, I get emacs version "GNU Emacs 24.3.1". This provides both GUI and CLI versions of emacs. When using the GUI client, nyan-mode works as advertised. When using the CLI version, I get the "Invalid image type 'xpm'" error.

My commit leaves the GUI version working as expected, and enables the ascii art version for CLI usage. On my Ubuntu VM, which never demonstrated this problem, this patch appears to "do no harm".

This may fix #21.