RE: Configuring emacs/ilisp to work with w3
"Clementson, Bill" <[email protected]>
| Newsgroups | gmane.lisp.ilisp.devel |
|---|---|
| Message-ID | <[email protected]> |
From: Tiago Maduro-Dias on Sunday, May 11, 2003 9:12 AM
> This isn't really a dev question but you'll probably be able
> to help me.
> I have emacs configured to work with mozilla:
>
> ;; browser configuration
> (setq browse-url-browser-function 'browse-url-netscape
> browse-url-netscape-program "mozilla")
>
> It works perfectly.
>
> But afterwards I installed w3 and I'm having trouble figuring out
> exactly how to redirect the hyperspec apropos help thing to w3 instead
> of the configured browser.
>
> If anyone could show me how to configure it it would be very much
> obliged :).
I use a combination of IE and w3 on Emacs & MS Windows. Usually, I want to use IE (calling the hyperspec with F1), but sometimes I want to use w3 instead. I set up the following in order to use w3 (make sure the w3 directory is in your load-path first) to access the hyperspec from the Shift-F1 key:
(global-set-key [(shift f1)]
'(lambda ()
(interactive)
(require 'w3-auto)
(let ((browse-url-browser-function 'browse-url-w3)
(common-lisp-hyperspec-root "file://c:/usr/home/docs/Hyperspec/")
(common-lisp-hyperspec-symbol-table (concat common-lisp-hyperspec-root "Data/Map_Sym.txt"))
(hyperspec-prog "c:/usr/home/site/ilisp/extra/hyperspec"))
(load-library hyperspec-prog)
(common-lisp-hyperspec (thing-at-point 'symbol)))))
Note that you need to use the file://... syntax for the common-lisp-hyperspec-root variable but can not use it for the hyperspec-prog variable. Note also that I use global-set-key because I often want to access the hyperspec from inside a document that isn't a lisp source file. You may want to use an ilisp-specific binding instead.
Hope that helps.
--
Bill Clementson
>
> Thanks in advance,
> Tiago Maduro-Dias
>
> --
>
> "To underestimate one's self is as much a departure from truth as to
> exaggerate one's own powers."
> (Sherlock Holmes)
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux
> enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Ilisp-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ilisp-devel
>
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com