From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan =?iso-8859-1?Q?Reich=F6r?= Newsgroups: gmane.emacs.help Subject: Re: emacs-w3m configs Date: Mon, 27 Jun 2005 22:38:58 +0200 Organization: UTA Telekom AG (Customer) Message-ID: <8764vzzg9p.fsf@utanet.at> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119904680 21296 80.91.229.2 (27 Jun 2005 20:38:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 20:38:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 27 22:37:56 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn0M7-0005aX-9R for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 22:37:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn0Tp-0004fE-2r for geh-help-gnu-emacs@m.gmane.org; Mon, 27 Jun 2005 16:45:21 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!newscore.univie.ac.at!newsfeed.utanet.at!newsspool.utanet.at!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: linzu3-217-48.utaonline.at Original-X-Trace: newsreader1.utanet.at 1119904781 3944 212.152.217.48 (27 Jun 2005 20:39:41 GMT) Original-X-Complaints-To: abuse@uta.at Original-NNTP-Posting-Date: 27 Jun 2005 20:39:41 GMT User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:1igVyWLdDJRwmNAmfLMjYUKTeFA= Original-Xref: shelby.stanford.edu gnu.emacs.help:132202 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27677 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27677 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 '(lambda() (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" '(progn (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] 'w3m-view-url-with-external-browser) (require 'w3m-search) (add-to-list 'w3m-search-engine-alist '("emacs-wiki" "http://www.emacswiki.org/cgi-bin/wiki.pl?search=%s")) (add-to-list 'w3m-search-engine-alist '("leo" "http://dict.leo.org/?search=%s")) ;; 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)))))) Stefan.