all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: How to setup w3m-el as a default browser on GNU system?
Date: Fri, 18 Jun 2010 08:12:05 +1000	[thread overview]
Message-ID: <87631h2tsa.fsf@rapttech.com.au> (raw)
In-Reply-To: mailman.1.1276792958.21170.help-gnu-emacs@gnu.org

Paul Chany <csanyipal@gmail.com> writes:

> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>
>> Paul Chany <csanyipal@gmail.com> writes:
>>> I need this setup because when in org-mode and want follow a link to a
>>> file://path/some.html then an xterm being started and on it w3m as a
>>> default browser. I try to setup Emacs and org-mode to open this file in
>>> Emacs buffer in w3m-el but without any success. What am I missing here?
>
>> See related things to w3m in files .emacs.el and w3m-config.el here:
>> http://mercurial.intuxication.org/hg/emacs-utils
>> Hope that help.
>
> Unfortunately I can't find there the solution for my problem, sorry.

What I have is 

 '(browse-url-browser-function (quote w3m-browse-url))

in my custom section. i.e. M-x customize-variable
browse-util-browser-function

This will make the browse-url package use w3m to browse urls. 

Another post showed how to set org mode to use w3m for browsing org mode
file links that are html files

I also have the following additional customizations 

(defun w3m-browse-url-other-window (url &optional arg)
  "Browse URL with w3m, use other window."
  (interactive
   (browse-url-interactive-arg "w3m URL: "))
  (when (stringp url)
    (let ((buffer (get-buffer "*w3m*")))
      (switch-to-buffer-other-window (if buffer buffer (current-buffer)))
      (w3m-goto-url url))))

(global-set-key "\C-c\C-z." 'browse-url-at-point)
(global-set-key "\C-c\C-zb" 'browse-url-of-buffer)
(global-set-key "\C-c\C-zr" 'browse-url-of-region)
(global-set-key "\C-c\C-zu" 'browse-url)
(global-set-key "\C-c\C-zv" 'browse-url-of-file)

(add-hook 'dired-mode-hook
		  (lambda ()
			(local-set-key "\C-c\C-zf" 'browse-url-of-dired-file)))

Note that if your using emacs23 and your on debian, you need the
w3m-el-snapshot package rather than just the w3m-el package as the last
'released' version of w3m-el does nto work with emacw23.

Tim

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2010-06-17 22:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-17 13:56 How to setup w3m-el as a default browser on GNU system? Paul Chany
2010-06-17 14:07 ` Thierry Volpiatto
2010-06-17 16:42   ` Paul Chany
     [not found]   ` <mailman.1.1276792958.21170.help-gnu-emacs@gnu.org>
2010-06-17 22:12     ` Tim X [this message]
2010-06-17 17:07 ` Pedro Insua
2010-06-17 20:56   ` Paul Chany
2010-06-17 21:28     ` Pedro Insua
2010-06-17 21:34       ` Paul Chany
2010-06-17 22:18         ` Pedro Insua
2010-06-17 22:35           ` Paul Chany
2010-06-18  8:46             ` Štěpán Němec
2010-06-18 10:27               ` Paul Chany
2010-06-18 12:08                 ` Drew Adams
2010-06-18 15:34                   ` How to get Elisp info documentation on Debian Squeeze? Paul Chany
2010-06-18 15:40                     ` Drew Adams
2010-06-18 15:40                     ` Richard Riley
2010-06-18 16:23                       ` Paul Chany
     [not found]                     ` <mailman.3.1276875632.15308.help-gnu-emacs@gnu.org>
2010-06-18 23:49                       ` Tim X
2010-06-18  8:52             ` How to setup w3m-el as a default browser on GNU system? Pedro Insua
2010-06-18 10:37               ` Paul Chany
     [not found]   ` <mailman.7.1276808235.21170.help-gnu-emacs@gnu.org>
2010-06-17 22:15     ` Tim X

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87631h2tsa.fsf@rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.