* Re: How to preview HTML inside emacs?
@ 2008-01-11 8:15 Forrest Y. Yu
0 siblings, 0 replies; 11+ messages in thread
From: Forrest Y. Yu @ 2008-01-11 8:15 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 1030 bytes --]
>
> Message: 3
> Date: Thu, 10 Jan 2008 18:32:32 +0100
> From: Tassilo Horn <tassilo@member.fsf.org>
> Subject: Re: help-gnu-emacs Digest, Vol 62, Issue 29
> To: help-gnu-emacs@gnu.org
> Message-ID: <877iihk2mn.fsf@member.fsf.org>
> Content-Type: text/plain; charset=us-ascii
>
> "Forrest Y. Yu" <forrest.yu@gmail.com> writes:
>
> Hi Forrest,
>
> >> emacs-w3m [1] is a nice web browser that works within emacs. Use
> >> `w3m-find-file' to render a local file.
> >
> > I tried to install emacs-w3m but got messages said that `Emacs-w3m of
> > this version does not support Emacs 23'. I ignored the error message
> > and tried to use it and failed. :(
>
> Yes, for emacs 23 you cannot use any released version. So check out the
> current CVS sources of emacs-w3m.
thank you. i checked out the current CVS sources just now.
i cannot find the ./configure file in the sources, so i copied *.el to my
load-path, then i launched emacs, tried `w3m-find-file' and it just worked
>
> Bye,
> Tassilo
>
>
>
--
Stupid is as stupid does.
[-- Attachment #1.2: Type: text/html, Size: 1489 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
@ 2008-01-10 17:10 Forrest Y. Yu
2008-01-10 17:45 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 11+ messages in thread
From: Forrest Y. Yu @ 2008-01-10 17:10 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 878 bytes --]
> Message: 6
> Date: Thu, 10 Jan 2008 15:09:54 +0800
> From: Wang xiangdong <yzwxd1981@gmail.com>
> Subject: Re: How to preview HTML inside emacs?
> To: help-gnu-emacs@gnu.org
> Message-ID: <87sl16i2bh.fsf@gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> use w3 or w3m
> "Forrest Y. Yu" <forrest.yu@gmail.com> writes:
>
> > hi Everyone,
> >
> > I'm using emacs to edit HTML files, can I preview them inside the emacs
without opening any external browser?
> >
> > `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
doesn't work in console.
> >
> > Thanks in advance!
> >
> > Best Regards,
> > Forrest Y. Yu
>
> --
> Every man is the master of his own fortune.
> http://www.google.com
> -- Wang xiangdong
>
>
thank you xiaodong, but, do you mean that i'd preview it under a shell with
w3/w3m?
Regards,
Forrest Y. Yu
--
Stupid is as stupid does.
[-- Attachment #1.2: Type: text/html, Size: 1388 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
@ 2008-01-10 17:05 Forrest Y. Yu
0 siblings, 0 replies; 11+ messages in thread
From: Forrest Y. Yu @ 2008-01-10 17:05 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 1081 bytes --]
>
> ------------------------------
>
> Message: 6
> Date: Thu, 10 Jan 2008 00:18:26 -0800 (PST)
> From: Jashy <nanjunjie@gmail.com>
> Subject: Re: How to preview HTML inside emacs?
> To: Help-gnu-emacs@gnu.org
> Message-ID: <14729483.post@talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
>
>
> Forrest-40 wrote:
> >
> > I'm using emacs to edit HTML files, can I preview them inside the emacs
> > without opening any external browser?
> >
> > `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
> > doesn't work in console.
> >
> M-x customize-variable Enter browse-url-browser-function Enter, to set
> w3m-browse-url if you like.
thank you Jashy, the command is helpful, but where does `w3m-browse-url'
come from? is it a shell command? or is it from any elisp package? there
seems no such a thing in my system :(
>
>
> --
> View this message in context:
http://www.nabble.com/How-to-preview-HTML-inside-emacs--tp14728205p14729483.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
>
>
>
>
>
--
Stupid is as stupid does.
[-- Attachment #1.2: Type: text/html, Size: 1647 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <mailman.5942.1199945069.18990.help-gnu-emacs@gnu.org>]
* How to preview HTML inside emacs?
@ 2008-01-10 6:04 Forrest Y. Yu
2008-01-10 8:10 ` Thierry Volpiatto
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Forrest Y. Yu @ 2008-01-10 6:04 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
hi Everyone,
I'm using emacs to edit HTML files, can I preview them inside the emacs
without opening any external browser?
`C-c C-v' is not good for me, 'coz it brings a firefox window in X and
doesn't work in console.
Thanks in advance!
Best Regards,
Forrest Y. Yu
--
Debian Etch + Emacs23
[-- Attachment #1.2: Type: text/html, Size: 387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
2008-01-10 6:04 Forrest Y. Yu
@ 2008-01-10 8:10 ` Thierry Volpiatto
2008-01-10 16:49 ` Forrest Y. Yu
2008-01-10 8:18 ` Jashy
2008-01-10 8:30 ` David Hansen
2 siblings, 1 reply; 11+ messages in thread
From: Thierry Volpiatto @ 2008-01-10 8:10 UTC (permalink / raw)
To: Forrest Y. Yu; +Cc: help-gnu-emacs
"Forrest Y. Yu" <forrest.yu@gmail.com> writes:
> hi Everyone,
>
> I'm using emacs to edit HTML files, can I preview them inside the emacs
> without opening any external browser?
>
> `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
> doesn't work in console.
I use that and it's work fine:
http://www.emacswiki.org/cgi-bin/wiki/extview.el
--
A+ Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
2008-01-10 8:10 ` Thierry Volpiatto
@ 2008-01-10 16:49 ` Forrest Y. Yu
2008-01-10 20:17 ` Thierry Volpiatto
0 siblings, 1 reply; 11+ messages in thread
From: Forrest Y. Yu @ 2008-01-10 16:49 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 804 bytes --]
On Jan 10, 2008 4:10 PM, Thierry Volpiatto <thierry.volpiatto@gmail.com>
wrote:
>
> "Forrest Y. Yu" <forrest.yu@gmail.com> writes:
>
> > hi Everyone,
> >
> > I'm using emacs to edit HTML files, can I preview them inside the emacs
> > without opening any external browser?
> >
> > `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
> > doesn't work in console.
>
> I use that and it's work fine:
I'm sorry but, how can I make use of it?
I added these two lines into my ~/.emacs:
(require 'extview)
(push '("\\.html$" . "w3m %s") extview-application-associations)
then I press `C-c C-v' when editing a html file, it still brings a firefox
window!
>
> http://www.emacswiki.org/cgi-bin/wiki/extview.el
> --
> A+ Thierry
> Pub key: http://pgp.mit.edu
>
--
Stupid is as stupid does.
[-- Attachment #1.2: Type: text/html, Size: 1260 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
2008-01-10 16:49 ` Forrest Y. Yu
@ 2008-01-10 20:17 ` Thierry Volpiatto
0 siblings, 0 replies; 11+ messages in thread
From: Thierry Volpiatto @ 2008-01-10 20:17 UTC (permalink / raw)
To: Forrest Y. Yu; +Cc: help-gnu-emacs
"Forrest Y. Yu" <forrest.yu@gmail.com> writes:
> On Jan 10, 2008 4:10 PM, Thierry Volpiatto <thierry.volpiatto@gmail.com>
> wrote:
>>
>> "Forrest Y. Yu" <forrest.yu@gmail.com> writes:
>>
>> > hi Everyone,
>> >
>> > I'm using emacs to edit HTML files, can I preview them inside the emacs
>> > without opening any external browser?
>> >
>> > `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
>> > doesn't work in console.
>>
>> I use that and it's work fine:
>
> I'm sorry but, how can I make use of it?
> I added these two lines into my ~/.emacs:
> (require 'extview)
> (push '("\\.html$" . "w3m %s") extview-application-associations)
>
> then I press `C-c C-v' when editing a html file, it still brings a firefox
> window!
Sorry i understand preview as seeing the sourcecode of the file.
May be better using another command as:
w3m-find-file your_html_file ==> bind it to some keys
Extview use ~/.mailcap to manage your file extensions, so if you modify
your ~/.mailcap, all the .html will be open in w3m.
It's may be not what you want.
Extview , when you press enter while in dired, ask you if you want to
open the file in an external viewer or not.
Here is how to configure extview:(my config)
(add-to-list 'load-path "~/elisp/extview")
(load "extview.elc")
(push '("\\.py$" . nil) extview-application-associations)
(push '("\\.sh$" . nil) extview-application-associations)
(push '("\\.py~$" . nil) extview-application-associations)
(push '("\\.sh~$" . nil) extview-application-associations)
(push '("\\.html$" . ask) extview-application-associations)
(push '("\\.jpeg$" . nil) extview-application-associations)
(push '("\\.jpg$" . nil) extview-application-associations)
(push '("\\.png$" . nil) extview-application-associations)
(push '("\\.gif$" . nil) extview-application-associations)
(push '("\\.tiff$" . nil) extview-application-associations)
(push '("\\.ogg$" . nil) extview-application-associations)
(push '("\\.mp3$" . nil) extview-application-associations)
(push '("\\.wav$" . nil) extview-application-associations)
(push '("\\.m3u$" . nil) extview-application-associations)
(push '("\\.tcl$" . nil) extview-application-associations)
(push '("\\.pls$" . nil) extview-application-associations)
(push '("\\.tex$" . nil) extview-application-associations)
(push '("\\.ps$" . nil) extview-application-associations)
(push '("\\.css$" . nil) extview-application-associations)
(push '("\\.xml$" . ask) extview-application-associations)
(push '("\\.ps$" . ask) extview-application-associations)
(push '("\\.*~$" . nil) extview-application-associations)
(push '("\\.*.~*~$" . nil) extview-application-associations)
(push '("\\.h$" . nil) extview-application-associations)
(push '("\\.d$" . nil) extview-application-associations)
(push '("\\.dat$" . nil) extview-application-associations)
Here is my ~/.mailcap:(where extview read)
image/jpeg; showpicture -viewer display %s
image/*; showpicture -viewer display %s
text/html; firefox %s
application/xml; firefox %s
text/xml; firefox %s
text/plain ; $EDITOR %s
text/* ; $EDITOR %s
chemical/x-mopac-input ; $EDITOR %s
application/pdf; evince %s
application/dvi; evince %s
application/ogg ; ogg123 %s
audio/x-wav ; aplay %s
audio/mpeg ; mpg321 %s
audio/*; showaudio %s
video/x-msvideo; mplayer %s
video/quicktime; mplayer %s
application/postscript; gv %s
showpicture, showaudio... is in the metamail package.
>>
>> http://www.emacswiki.org/cgi-bin/wiki/extview.el
>> --
>> A+ Thierry
>> Pub key: http://pgp.mit.edu
>>
--
A+ Thierry
Pub key: http://pgp.mit.edu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
2008-01-10 6:04 Forrest Y. Yu
2008-01-10 8:10 ` Thierry Volpiatto
@ 2008-01-10 8:18 ` Jashy
2008-01-10 8:30 ` David Hansen
2 siblings, 0 replies; 11+ messages in thread
From: Jashy @ 2008-01-10 8:18 UTC (permalink / raw)
To: Help-gnu-emacs
Forrest-40 wrote:
>
> I'm using emacs to edit HTML files, can I preview them inside the emacs
> without opening any external browser?
>
> `C-c C-v' is not good for me, 'coz it brings a firefox window in X and
> doesn't work in console.
>
M-x customize-variable Enter browse-url-browser-function Enter, to set
w3m-browse-url if you like.
--
View this message in context: http://www.nabble.com/How-to-preview-HTML-inside-emacs--tp14728205p14729483.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: How to preview HTML inside emacs?
2008-01-10 6:04 Forrest Y. Yu
2008-01-10 8:10 ` Thierry Volpiatto
2008-01-10 8:18 ` Jashy
@ 2008-01-10 8:30 ` David Hansen
2 siblings, 0 replies; 11+ messages in thread
From: David Hansen @ 2008-01-10 8:30 UTC (permalink / raw)
To: help-gnu-emacs
On Thu, 10 Jan 2008 14:04:25 +0800 Forrest Y. Yu wrote:
> I'm using emacs to edit HTML files, can I preview them inside the
> emacs without opening any external browser?
>
> `C-c C-v' is not good for me, 'coz it brings a firefox window in X
> and doesn't work in console.
emacs-w3m [1] is a nice web browser that works within emacs. Use
`w3m-find-file' to render a local file.
Footnotes:
[1] http://emacs-w3m.namazu.org/
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-01-11 8:15 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 8:15 How to preview HTML inside emacs? Forrest Y. Yu
-- strict thread matches above, loose matches on Subject: below --
2008-01-10 17:10 Forrest Y. Yu
2008-01-10 17:45 ` Lennart Borgman (gmail)
2008-01-10 17:05 Forrest Y. Yu
[not found] <mailman.5942.1199945069.18990.help-gnu-emacs@gnu.org>
2008-01-10 7:09 ` Wang xiangdong
2008-01-10 6:04 Forrest Y. Yu
2008-01-10 8:10 ` Thierry Volpiatto
2008-01-10 16:49 ` Forrest Y. Yu
2008-01-10 20:17 ` Thierry Volpiatto
2008-01-10 8:18 ` Jashy
2008-01-10 8:30 ` David Hansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).