I have emacs and slime running on linux , and I'm trying to get this hyperspec
lookup thing to work. I have mozilla installed rather than netscape, and
specifically I want mozilla to be used as per the info at
http://mozilla.org/unix/remote.html
So I'd like to use: mozilla -remote "openurl(the-url, new-tab)"
How exactly do I change this in emacs or slime?
I've been looking through all the stuff with functions named things like
browse-url-netscape and so forth in loaddefs.el but so far I'm just confused.
KanZen
KanZen wrote:
> How exactly do I change this in emacs or slime?
Here's mine:
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(browse-url-browser-function (quote browse-url-generic))
'(browse-url-generic-program "galeon"))
Svein Ove Aas <·····@brage.info> writes:
> KanZen wrote:
>
> > How exactly do I change this in emacs or slime?
>
>
> Here's mine:
>
>
> (custom-set-variables
> ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
> ;; Your init file should contain only one such instance.
> '(browse-url-browser-function (quote browse-url-generic))
> '(browse-url-generic-program "galeon"))
I prefer to use W3 in emacs for hyperspec access. It loads fast and
makes copy/paste from the hyperspec easy.
(add-hook 'lisp-mode-hook
(lambda ()
(slime-mode t)
(setq browse-url-browser-function 'browse-url-w3)))
Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
On 15 Apr 2004 16:22:37 +0200, Petter Gustad <·············@gustad.com> wrote:
> I prefer to use W3 in emacs for hyperspec access. It loads fast and
> makes copy/paste from the hyperspec easy.
>
> (add-hook 'lisp-mode-hook
> (lambda ()
> (slime-mode t)
> (setq browse-url-browser-function 'browse-url-w3)))
BTW, browse-url-browser-function itself can be customized to dispatch
to different browsers depending on the URL. From the docs (note second
paragraph):
"Function to display the current buffer in a WWW browser. This is
used by the `browse-url-at-point', `browse-url-at-mouse', and
`browse-url-of-file' commands.
If the value is not a function it should be a list of pairs (REGEXP
. FUNCTION). In this case the function called will be the one
associated with the first REGEXP which matches the current URL.
The function is passed the URL and any other args of `browse-url'.
The last regexp should probably be "." to specify a default
browser."
Edi.
Petter Gustad wrote:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
Shouldn't that be the following?
---
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?