1

I am using emacs 24.3.

I use the common setting that add to .emacs:

(setq w3m-default-desplay-inline-images t)

but it's not work. I also try to toggle to display image via shortcut T in emacs-w3m, it shows "Can't display images in this environment".

enter image description here

It works totally fine on Ubuntu 12.04 LTS.

Are there any ways to solve this problem?

TaZz
  • 654
  • 7
  • 20
Josan
  • 610
  • 1
  • 5
  • 25
  • 1
    Did you install the executable of w3m, and did you try running it in the terminal to see what happens? You should get a listing in the terminal of all available options for w3m if it is installed correctly: `w3m version w3m/0.5.3, options lang=en,m17n,image,color,ansi-color,mouse,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,ipv6,alarm,mark usage: w3m [options] [URL or filename] options: -t tab set tab width. . .` – lawlist Feb 07 '14 at 01:44
  • @lawlist I have tried it in terminal, it also couldn't display image. Thank you. – Josan Feb 07 '14 at 01:48
  • 1
    Are you using emacs in a terminal? –  Feb 07 '14 at 04:36
  • @IqbalAnsari yeah, I have some work that on remote machines. – Josan Feb 07 '14 at 04:53
  • 1
    Oh then I guess you are out of luck, sorry, check my answer –  Feb 07 '14 at 04:55

2 Answers2

2

You cannot display images in a terminal environment, to verify this do M-x (display-images-p nil) this will return nil in console emacs. You will need to start emacs in window environment without the -nw flag (I am assuming you are using it to start emacs)

0

try to start emacs without -nw flag.