Bill Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

October 2003
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Sep  Nov

CL Hyperspec in Info format in Emacs

Thursday, October 2, 2003

I always felt that it was neat to have context-sensitive access to the Common Lisp HyperSpec when working with CL code in Emacs using ILISP. However, it bugged me a bit that I had to call IE from Emacs in order to display the documentation. I got around this by using the Emacs-based W3 browser but soon went back to using IE because W3 is so slow. Now, I've discovered an info version of the CL documentation and usually use that instead of the browser-based versions. I've put full installation and setup instructions on my Common Lisp Cookbook - Setting up an IDE with Emacs on Windows or Mac OS X page. I use the following code (included in the .emacs file at the above page) to provide context-sensitive help off of the "C-M-F1" key binding:

(global-set-key [(control meta f1)]
		'(lambda ()
		   (interactive)
		   (ignore-errors
		     (info (concatenate 'string "(gcl) " (thing-at-point 'symbol))))))
Using info from within Emacs is a lot faster than bringing up a browser.

emacs Copyright © 2004 by Bill Clementson