For emacs I wrote jump to documentation some while back:
http://www.prodevtips.com/2010/11/03/autocompletion-jump-to-documentation-swank-and-slime/
If you don't care to do the jump here is the e-lisp code that you put
in your config:
(defun picolisp-jump ()
(interactive)
(let (myword myurl)
(setq myword
(if (and transient-mark-mode mark-active)
(buffer-substring-no-properties (region-beginning) (region-end))
(thing-at-point 'symbol)))
(setq myurl (concat "http://www.software-lab.de/doc/ref" (upcase
(substring myword 0 1)) ".html#" myword))
(browse-url myurl)))
Invocation:
(define-key picolisp-mode-map (kbd "C-M-r") 'picolisp-jump)
On Fri, Nov 11, 2011 at 9:43 PM, Jon Kleiser <[email protected]> wrote:
> Hi Alex,
>
> Thanks! By invoking PicoLisp using the global path, I'm now able to view the
> docs by specifying my shell script, like this:
> (doc '+ "openurl.sh")
> .. and after having done this:
> export BROWSER=openurl.sh
> .. I only have to do (doc '+). Very nice!
>
> /Jon
>
> On 11/11/11 2:24 PM, Alexander Burger wrote:
>>
>> Hi Jon,
>>
> ..
>>
>> As for all files in PicoLisp, this depends on how the interpreter is
>> invoked. I have global and local installations here. So if I try the
>> global one,
>>
>> $ pil +
>> : (doc '+ "echo")
>> file:///usr/lib/picolisp/doc/ref_.html#+
>> -> T
>>
>> or a local installation with relative
>>
>> $ ./pil +
>> : (doc '+ "echo")
>> file:doc/ref_.html#+
>> -> T
>>
>> or global pathes
>>
>> $ /usr/abu/pico/pil +
>> : (doc '+ "echo")
>> file:///usr/abu/pico/doc/ref_.html#+
>> -> T
>>
>> I always get the correct path.
>>
>> Cheers,
>> - Alex
>
> --
> UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe
>
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe