help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why my w3m can't display image in emacs


From: hywei
Subject: why my w3m can't display image in emacs
Date: Mon, 31 Aug 2009 22:26:59 -0700 (PDT)
User-agent: G2/1.0

Here is my w3m setting, but it can't display image and  Chinese
disorderly code。

;; =======================w3m================================
(if (= emacs-major-version 23)
    (progn
      (add-to-list 'load-path "/home/hywei/emacs/extents/emacs-w3m/
emacs/w3m")
      (require 'w3m-load))
  (require 'w3m))

(require 'w3m-e21)
(provide 'w3m-e23)
(setq w3m-display-inline-image t)
(setq w3m-use-mule-ucs t)
(setq w3m-use-toolbar t)
(setq w3m-use-cookies t)
(setq w3m-bookmark-file-coding-system 'chinese-iso-8bit)
(setq w3m-coding-system 'chinese-iso-8bit)
(setq w3m-default-coding-system 'chinese-iso-8bit)
(setq w3m-file-coding-system 'chinese-iso-8bit)
(setq w3m-file-name-coding-system 'chinese-iso-8bit)
(setq w3m-terminal-coding-system 'chinese-iso-8bit)
(setq w3m-input-coding-system 'chinese-iso-8bit)
(setq w3m-output-coding-system 'chinese-iso-8bit)
(setq w3m-tab-width 8)
(setq w3m-home-page "http://www.google.com";)
(setq w3m-view-this-url-new-session-in-background t)


(setq browse-url-browser-function 'w3m-browse-url)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
 ;; optional keyboard short-cut
(global-set-key "\C-xm" 'browse-url-at-point)

(add-hook 'w3m-fontify-after-hook 'remove-w3m-output-garbages)
 (defun remove-w3m-output-garbages()
    (interactive)
    (let ((buffer-read-only))
   (setf (point) (point-min))
   (while (re-search-forward "[\200-\240]" nil t)
     (replace-match " "))
   (set-buffer-multibyte t))
   (set-buffer-modified-p nil))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]