[Top][All Lists]

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

Re: emacs-w3m configs

From: Stefan Reichör
Subject: Re: emacs-w3m configs
Date: Mon, 27 Jun 2005 22:38:58 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Hi Fabian!

> Hi,
> I want to configure w3m inside emacs a little bit and wonder
> if anybody can provide me some sample configs, e.g. for
> coloring and keyadjustments.

Here is some stuff from my .emacs:

(setq w3m-key-binding 'info)
(setq w3m-search-default-engine "google")
(setq w3m-fill-column 100)
(setq w3m-use-cookies t)

;; Select a better coding system to display umlauts correctly
(setq w3m-coding-system 'utf-8
      w3m-file-coding-system 'utf-8
      w3m-file-name-coding-system 'utf-8
      w3m-input-coding-system 'utf-8
      w3m-output-coding-system 'utf-8
      w3m-terminal-coding-system 'utf-8)

(add-hook 'w3m-mode-hook
             (define-key w3m-mode-map [?w] 'w3m-copy-link)
             (define-key w3m-mode-map [(meta ?c)] 'w3m-print-current-url)))
;(setq w3m-async-exec nil)

(eval-after-load "w3m"
    (unless w3m-icon-directory
      (setq w3m-icon-directory (concat emacs-site-lisp-directory "w3m/icons")))

    ;; w3m-minor-mode-map is active when showing html articles in gnus
    ;; w3m-minor-mode-map is not active, when 
mm-inline-text-html-with-w3m-keymap is nil
    (define-key w3m-minor-mode-map "\C-m" 'w3m-view-url-with-external-browser)
    (define-key w3m-minor-mode-map [mouse-2] 

    (require 'w3m-search)
    (add-to-list 'w3m-search-engine-alist
    (add-to-list 'w3m-search-engine-alist
                 '("leo" "";))

    ;; Make the previous search engine the default for the next search.
    (defadvice w3m-search (after change-default activate)
      (let ((engine (nth 1 minibuffer-history)))
        (when (assoc engine w3m-search-engine-alist)
          (setq w3m-search-default-engine engine))))))


reply via email to

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