reddit / emacs
nyan-mode images does not appear on my emacs
ubermenschslav · 2022-05-26 18:09
I am using emacs under ubuntu 20.04 and installed nyan-mode with melpa to emacs. it is working but nyan cat is not appearing. emacs version is 26.3. Any suggestion?
[https://github.com/TeMPOraL/nyan-mode](https://github.com/TeMPOraL/nyan-mode)
Edit: When i trying to open ../img/nyan.xmp inside emacs, it prompts "Cannot display image: (Display does not support images)"
​
ubermenschslav · 2022-05-26 19:01
Really noone to overcome this?
publicvoit · 2022-05-26 19:26
Check your support for displaying XPM images in Emacs.
Once upon a time, I had to manually find and copy `xpm4.dll` to an Emacs directory in order to enable support for this format then nyan cat was flying again.
`(image-type-available-p 'png) (image-type-available-p 'xpm)`
Sources: https://stackoverflow.com/questions/2650041/emacs-under-windows-and-png-files
ubermenschslav · 2022-05-26 19:37
i am on linux and that function is not available in my emacs. i tried with xmp.so file but nothing changed.i am on terminal by the way.
ubermenschslav · 2022-05-26 19:42
or is it just for gui version?
publicvoit · 2022-05-26 19:49
>(image-type-available-p 'xpm)
Emacs 26.3 GNU/Linux here and this function is defined and it returns t(rue) in my case:
`image-type-available-p is an autoloaded compiled Lisp function in ‘image.el’.`
organic-bookworm · 2022-05-27 07:19
It should work for TUI as well.
*EDIT*: I mean, on TUI `nyan-mode` uses ascii art.
organic-bookworm · 2022-05-27 07:21
Just in case... Did you actually enable `nyan-mode` after installing the package?
ubermenschslav · 2022-05-27 07:22
Yeah i did. Its starting but just in text mode. Images not appearing.
ubermenschslav · 2022-05-27 07:26
I dont have image.el file. Actually after installing emacs my .emacs.d folder was empty. But i will find it and try this func.
Schievel1 · 2022-05-27 10:57
You can not have images in terminal mode o think
publicvoit · 2022-05-27 12:27
I guess you don't have an nyan-mode issue, you do have a graphics issue in general. But I'm not an expert here.
ubermenschslav · 2022-05-31 17:00
no way to use xpm version on tui?
ubermenschslav · 2022-05-31 17:03
it returns "nil" in my emacs.
organic-bookworm · 2022-05-31 21:39
The short and lazy answer is no.