7

I am a newbie for emacs and common lisp.

I am now using emacs and slime to learn P.Graham “ANSI Common LISP”. However, when I meet something that I don't konw, I can not easily get some useful info like linux man.

Is there any common lisp docs like linux man?

Drew
  • 29,895
  • 7
  • 74
  • 104
BonderWu
  • 133
  • 1
  • 10
  • Possible duplicate of [Man or javadoc-style documentation for common lisp](http://stackoverflow.com/questions/11193313/man-or-javadoc-style-documentation-for-common-lisp) – sds Feb 13 '17 at 03:46

1 Answers1

10

Common Lisp HyperSpec describes the ANSI Common Lisp standard, and, as such, is more similar to the POSIX Standard than to Linux man pages.

Since you use Emacs, you can use clhs.el to lookup specific symbols there:

(autoload 'common-lisp-hyperspec "clhs" "Get doc on ANSI CL" t)
(define-key help-map "\C-s" 'common-lisp-hyperspec)

Note: I use C-h C-s to get the symbol documentation in the browser, you can, obviously, choose your own key binding (use C-h C-h to see the system bindings).

If you do more than casual Lisp coding, you would probably benefit from using SLIME: The Superior Lisp Interaction Mode for Emacs instead of the stock facilities.

(If you use VIM, google is your friend).

PS. You should also take a look at the implementation-specific documentation because it documents non-standard features and extensions.

sds
  • 58,617
  • 29
  • 161
  • 278
  • 1
    For Common Lisp HyperSpec and clhs.el, they really works. Thanks. – BonderWu Aug 02 '13 at 03:22
  • 1
    CLTL2 is often more helpful than the HyperSpec. It provides guidance and gives the rationale behind each part of the language. http://www.cs.cmu.edu/afs/cs.cmu.edu/project/ai-repository/ai/html/cltl/cltl2.html – Drew Aug 10 '13 at 19:59