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

Re: Feature inquiries



On Fri, 25 Feb 2005 15:01:05 +0000 E. Oltmanns wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> wrote:
>>>>>>> In [emacs-w3m : No.07725] Elias Oltmanns wrote:
>>
>>> Three more things though:
>>
>>> 1. Is there an easy way to move in an emacs-w3m buffer freely,
>>> i.e. not hopping from anchor to anchor, in order to move point to an
>>> url which isn't anchored, for instance?

From my ~/.emacs (search the emacswiki for type ahead mode):

  (defun dh-w3m-mode-hook ()
    (w3m-type-ahead-minor-mode 1)
    (define-key w3m-mode-map (kbd "/") 'w3m-type-ahead)
    (define-key w3m-mode-map (kbd "M-/") 'w3m-type-ahead-new-session)
    (define-key w3m-mode-map [down] 'next-line)
    (define-key w3m-mode-map [up] 'previous-line)
    (define-key w3m-mode-map [left] 'backward-char)
    (define-key w3m-mode-map [right] 'forward-char)
    (define-key w3m-mode-map (kbd "S-RET") 'w3m-open-all-links-in-new-session))

  (add-hook 'w3m-mode-hook 'dh-w3m-mode-hook)

> Another thing I'd like to know is how I can get emacs-w3m to make use
> of my mailcap files. Does emacs-w3m even bother parsing mime types
> like audio/* or similar? I've installed the current cvs version of
> emacs-w3m, gnus v5.10.7 with its mime package and in addition I
> installed flim 1.14.6 after I failed to get it working without
> it. Unfortunately this didn't fix the problem.

As a work around:

  (setq w3m-content-type-alist
        '(("text/plain" "\\.\\(txt\\|tex\\|el\\)\\'" nil nil)
          ("text/html" "\\.s?html?\\'" browse-url-gnome-moz nil)
          ("image/jpeg" "\\.jpe?g\\'" ("display" file) nil)
          ("image/png" "\\.png\\'" ("display" file) nil)
          ("image/gif" "\\.gif\\'" ("display" file) nil)
          ("image/tiff" "\\.tif?f\\'" ("display" file) nil)
          ("image/x-xwd" "\\.xwd\\'"  ("display" file) nil)
          ("image/x-xbm" "\\.xbm\\'" ("display" file) nil)
          ("image/x-xpm" "\\.xpm\\'" ("display" file) nil)
          ("image/x-bmp" "\\.bmp\\'" ("display" file) nil)
          ("video/mpeg" "\\.mpe?g\\'" ("mplayer" file) nil)
          ("video/quicktime" "\\.mov\\'" ("mplayer" file) nil)
          ("application/postscript" "\\.e?ps\\'" ("gv" file) nil)
          ("application/pdf" "\\.pdf\\'" ("xpdf" file) nil)
          ("application/xhtml+xml" nil nil "text/html")))

David