[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Open in org-mode link 'file://path/file.html' with w3m-el
From: |
Andreas Politz |
Subject: |
Re: Open in org-mode link 'file://path/file.html' with w3m-el |
Date: |
Wed, 08 Dec 2010 15:14:28 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Paul Chany <csanyipal@gmail.com> writes:
> Hi,
>
> I have setup custom-variable 'browse-url-browser-function' to
> 'w3m-browse-url' but it works only with links 'http://etc./index.html
>
> When in an org file have a link 'file://path/index.html' I want to open
> it with w3m-browse-url too but don't know how to setup this?
>
> I tried setup the customn-variable
> '(org-file-apps (quote ((auto-mode . emacs) ("\\.x?html?\\'"
> . w3m-browse-url) ("\\.pdf\\'" . default))))
>
> but this doesn't work. I don't know how to write the Lisp form to this
> to work?
>
> How can I setup org-file-apps to open a html file with w3m-el?
>
> Any advices will be appreciated!
According to (describe-variable 'org-file-apps) the cdr can't be a
function but a sexp, where the variable `file' holds the file-name of the
link. So I propose
(add-to-list 'org-file-apps '("\\.html\\'" . (browse-url-of-file file)))
...or any other browse-function accepting a file-name as argument.
-ap
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Open in org-mode link 'file://path/file.html' with w3m-el,
Andreas Politz <=