all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* why my w3m can't display image in emacs
@ 2009-09-01  5:26 hywei
  0 siblings, 0 replies; only message in thread
From: hywei @ 2009-09-01  5:26 UTC (permalink / raw)
  To: help-gnu-emacs

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))


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-01  5:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-01  5:26 why my w3m can't display image in emacs hywei

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.