| www.delorie.com/gnu/docs/calc/calc_369.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To teach Emacs how to load in Calc when you type M-# for the first time, add these lines to your `.emacs' file (if you are installing Calc just for your own use), or the system's `lisp/default' file (if you are installing Calc publicly). The `make private' and `make public' commands, respectively, take care of this. (Note that `make' runs `make private', and `make install' runs `make public'.)
(autoload 'calc-dispatch "calc" "Calculator Options" t) (autoload 'full-calc "calc" "Full-screen Calculator" t) (autoload 'full-calc-keypad "calc" "Full-screen X Calculator" t) (autoload 'calc-eval "calc" "Use Calculator from Lisp") (autoload 'defmath "calc" nil t t) (autoload 'calc "calc" "Calculator Mode" t) (autoload 'quick-calc "calc" "Quick Calculator" t) (autoload 'calc-keypad "calc" "X windows Calculator" t) (autoload 'calc-embedded "calc" "Use Calc from any buffer" t) (autoload 'calc-embedded-activate "calc" "Activate =>'s in buffer" t) (autoload 'calc-grab-region "calc" "Grab region of Calc data" t) (autoload 'calc-grab-rectangle "calc" "Grab rectangle of data" t) |
Unless you have installed the Calc files in Emacs' main `lisp/' directory, you will also have to add a command that looks like the following to tell Emacs where to find them. In this example, we have put the files in directory `/usr/gnu/src/calc-2.00'.
(setq load-path (append load-path (list "/usr/gnu/src/calc-2.00"))) |
The `make public' and `make private' commands also do this
(they use the then-current directory as the name to add to the path).
If you move Calc to a new location, just repeat the `make public'
or `make private' command to have this new location added to
the load-path.
The autoload command for calc-dispatch is what loads
`calc.elc' when you type M-#. It is the only autoload
that is absolutely necessary for Calc to work. The others are for
commands and features that you may wish to use before typing
M-# for the first time. In particular, full-calc and
full-calc-keypad are autoloaded to support "standalone"
operation (see section 1.5.5 Standalone Operation), calc-eval and
defmath are autoloaded to allow other Emacs Lisp programs to
use Calc facilities (see section 18.5.6 Calling Calc from Your Lisp Programs), and
calc-embedded-activate is autoloaded because some Embedded
Mode files may call it as soon as they are read into Emacs
(see section 17.3 Assignments in Embedded Mode).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |