aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2005-01-08 20:45:53 +0000
committerJay Belanger2005-01-08 20:45:53 +0000
commit3b8463590b37fa9c6f90f15d42014cea224e87c1 (patch)
tree6988f2ebfebda4fe797b10bd19d137285b405ed4
parent6bbfeec558c35adffa9945f26f0c112ed6e822e6 (diff)
downloademacs-3b8463590b37fa9c6f90f15d42014cea224e87c1.tar.gz
emacs-3b8463590b37fa9c6f90f15d42014cea224e87c1.zip
Changed references to .emacs to Calc init file.
-rw-r--r--man/calc.texi87
1 files changed, 49 insertions, 38 deletions
diff --git a/man/calc.texi b/man/calc.texi
index 2c09ef8ad6a..172fffa035a 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -12247,16 +12247,18 @@ the @emph{appearance} or @emph{interpretation} of the stack's contents.
12247@cindex Continuous memory 12247@cindex Continuous memory
12248@cindex Saving mode settings 12248@cindex Saving mode settings
12249@cindex Permanent mode settings 12249@cindex Permanent mode settings
12250@cindex @file{.emacs} file, mode settings 12250@cindex Calc init file, mode settings
12251You can save all of the current mode settings in your @file{.emacs} file 12251You can save all of the current mode settings in your Calc init file
12252with the @kbd{m m} (@code{calc-save-modes}) command. This will cause 12252(the file given by the variable @code{calc-settings-file}, typically
12253Emacs to reestablish these modes each time it starts up. The modes saved 12253@file{~/.calc.el}) with the @kbd{m m} (@code{calc-save-modes}) command.
12254in the file include everything controlled by the @kbd{m} and @kbd{d} 12254This will cause Emacs to reestablish these modes each time it starts up.
12255prefix keys, the current precision and binary word size, whether or not 12255The modes saved in the file include everything controlled by the @kbd{m}
12256the trail is displayed, the current height of the Calc window, and more. 12256and @kbd{d} prefix keys, the current precision and binary word size,
12257The current interface (used when you type @kbd{M-# M-#}) is also saved. 12257whether or not the trail is displayed, the current height of the Calc
12258If there were already saved mode settings in the file, they are replaced. 12258window, and more. The current interface (used when you type @kbd{M-#
12259Otherwise, the new mode information is appended to the end of the file. 12259M-#}) is also saved. If there were already saved mode settings in the
12260file, they are replaced. Otherwise, the new mode information is
12261appended to the end of the file.
12260 12262
12261@kindex m R 12263@kindex m R
12262@pindex calc-mode-record-mode 12264@pindex calc-mode-record-mode
@@ -15872,7 +15874,7 @@ No line breaking (@kbd{d b}).
15872Selections show deep structure (@kbd{j b}; @pxref{Making Selections}). 15874Selections show deep structure (@kbd{j b}; @pxref{Making Selections}).
15873 15875
15874@item Save 15876@item Save
15875Record modes in @file{~/.emacs} (@kbd{m R}; @pxref{General Mode Commands}). 15877Record modes in @file{~/.calc.el} (@kbd{m R}; @pxref{General Mode Commands}).
15876 15878
15877@item Local 15879@item Local
15878Record modes in Embedded buffer (@kbd{m R}). 15880Record modes in Embedded buffer (@kbd{m R}).
@@ -27759,13 +27761,14 @@ possible to create user-defined temperature units.
27759 27761
27760@kindex u p 27762@kindex u p
27761@pindex calc-permanent-units 27763@pindex calc-permanent-units
27762@cindex @file{.emacs} file, user-defined units 27764@cindex Calc init file, user-defined units
27763The @kbd{u p} (@code{calc-permanent-units}) command stores the user-defined 27765The @kbd{u p} (@code{calc-permanent-units}) command stores the user-defined
27764units in your @file{.emacs} file, so that the units will still be 27766units in your Calc init file (the file given by the variable
27765available in subsequent Emacs sessions. If there was already a set of 27767@code{calc-settings-file}, typically @file{~/.calc.el}), so that the
27766user-defined units in your @file{.emacs} file, it is replaced by the 27768units will still be available in subsequent Emacs sessions. If there
27767new set. (@xref{General Mode Commands}, for a way to tell Calc to use 27769was already a set of user-defined units in your Calc init file, it
27768a different file instead of @file{.emacs}.) 27770is replaced by the new set. (@xref{General Mode Commands}, for a way to
27771tell Calc to use a different file for the Calc init file.)
27769 27772
27770@node Store and Recall, Graphics, Units, Top 27773@node Store and Recall, Graphics, Units, Top
27771@chapter Storing and Recalling 27774@chapter Storing and Recalling
@@ -28150,14 +28153,15 @@ names rather than prompting for the variable name.
28150@pindex calc-permanent-variable 28153@pindex calc-permanent-variable
28151@cindex Storing variables 28154@cindex Storing variables
28152@cindex Permanent variables 28155@cindex Permanent variables
28153@cindex @file{.emacs} file, variables 28156@cindex Calc init file, variables
28154The @kbd{s p} (@code{calc-permanent-variable}) command saves a 28157The @kbd{s p} (@code{calc-permanent-variable}) command saves a
28155variable's value permanently in your @file{.emacs} file, so that its 28158variable's value permanently in your Calc init file (the file given by
28156value will still be available in future Emacs sessions. You can 28159the variable @code{calc-settings-file}, typically @file{~/.calc.el}), so
28157re-execute @w{@kbd{s p}} later on to update the saved value, but the 28160that its value will still be available in future Emacs sessions. You
28158only way to remove a saved variable is to edit your @file{.emacs} file 28161can re-execute @w{@kbd{s p}} later on to update the saved value, but the
28162only way to remove a saved variable is to edit your calc init file
28159by hand. (@xref{General Mode Commands}, for a way to tell Calc to 28163by hand. (@xref{General Mode Commands}, for a way to tell Calc to
28160use a different file instead of @file{.emacs}.) 28164use a different file for the Calc init file.)
28161 28165
28162If you do not specify the name of a variable to save (i.e., 28166If you do not specify the name of a variable to save (i.e.,
28163@kbd{s p @key{RET}}), all Calc variables with defined values 28167@kbd{s p @key{RET}}), all Calc variables with defined values
@@ -28176,7 +28180,7 @@ the values of all Calc variables into a specified buffer.
28176The variables are written with the prefix @code{var-} in the form of 28180The variables are written with the prefix @code{var-} in the form of
28177Lisp @code{setq} commands 28181Lisp @code{setq} commands
28178which store the values in string form. You can place these commands 28182which store the values in string form. You can place these commands
28179in your @file{.emacs} buffer if you wish, though in this case it 28183in your Calc init file (or @file{.emacs}) if you wish, though in this case it
28180would be easier to use @kbd{s p @key{RET}}. (Note that @kbd{s i} 28184would be easier to use @kbd{s p @key{RET}}. (Note that @kbd{s i}
28181omits the same set of variables as @w{@kbd{s p @key{RET}}}; the difference 28185omits the same set of variables as @w{@kbd{s p @key{RET}}}; the difference
28182is that @kbd{s i} will store the variables in any buffer, and it also 28186is that @kbd{s i} will store the variables in any buffer, and it also
@@ -28363,7 +28367,7 @@ Software Foundation's machine @samp{prep.ai.mit.edu}.)
28363@vindex calc-gnuplot-name 28367@vindex calc-gnuplot-name
28364If you have GNUPLOT installed on your system but Calc is unable to 28368If you have GNUPLOT installed on your system but Calc is unable to
28365find it, you may need to set the @code{calc-gnuplot-name} variable 28369find it, you may need to set the @code{calc-gnuplot-name} variable
28366in your @file{.emacs} file. You may also need to set some Lisp 28370in your Calc init file or @file{.emacs}. You may also need to set some Lisp
28367variables to show Calc how to run GNUPLOT on your system; these 28371variables to show Calc how to run GNUPLOT on your system; these
28368are described under @kbd{g D} and @kbd{g O} below. If you are 28372are described under @kbd{g D} and @kbd{g O} below. If you are
28369using the X window system, Calc will configure GNUPLOT for you 28373using the X window system, Calc will configure GNUPLOT for you
@@ -30418,7 +30422,8 @@ on it in order to get it to notice the new annotation.
30418 30422
30419Two more mode-recording modes selectable by @kbd{m R} are @code{Save} 30423Two more mode-recording modes selectable by @kbd{m R} are @code{Save}
30420(which works even outside of Embedded mode), in which mode settings 30424(which works even outside of Embedded mode), in which mode settings
30421are recorded permanently in your Emacs startup file @file{~/.emacs} 30425are recorded permanently in your Calc init file (the file given by the
30426variable @code{calc-settings-file}, typically @file{~/.calc.el})
30422rather than by annotating the current document, and no-recording 30427rather than by annotating the current document, and no-recording
30423mode (where there is no symbol like @code{Save} or @code{Local} in 30428mode (where there is no symbol like @code{Save} or @code{Local} in
30424the mode line), in which mode-changing commands do not leave any 30429the mode line), in which mode-changing commands do not leave any
@@ -30434,8 +30439,8 @@ for @code{Save} have no effect.
30434You can modify Embedded mode's behavior by setting various Lisp 30439You can modify Embedded mode's behavior by setting various Lisp
30435variables described here. Use @kbd{M-x set-variable} or 30440variables described here. Use @kbd{M-x set-variable} or
30436@kbd{M-x edit-options} to adjust a variable on the fly, or 30441@kbd{M-x edit-options} to adjust a variable on the fly, or
30437put a suitable @code{setq} statement in your @file{~/.emacs} 30442put a suitable @code{setq} statement in your Calc init file (or
30438file to set a variable permanently. (Another possibility would 30443@file{~/.emacs}) to set a variable permanently. (Another possibility would
30439be to use a file-local variable annotation at the end of the 30444be to use a file-local variable annotation at the end of the
30440file; @pxref{File Variables, , Local Variables in Files, emacs, the 30445file; @pxref{File Variables, , Local Variables in Files, emacs, the
30441Emacs manual}.) 30446Emacs manual}.)
@@ -30673,15 +30678,16 @@ key we defined above.
30673@pindex calc-user-define-permanent 30678@pindex calc-user-define-permanent
30674@cindex Storing user definitions 30679@cindex Storing user definitions
30675@cindex Permanent user definitions 30680@cindex Permanent user definitions
30676@cindex @file{.emacs} file, user-defined commands 30681@cindex Calc init file, user-defined commands
30677The @kbd{Z P} (@code{calc-user-define-permanent}) command makes a key 30682The @kbd{Z P} (@code{calc-user-define-permanent}) command makes a key
30678binding permanent so that it will remain in effect even in future Emacs 30683binding permanent so that it will remain in effect even in future Emacs
30679sessions. (It does this by adding a suitable bit of Lisp code into 30684sessions. (It does this by adding a suitable bit of Lisp code into
30680your @file{.emacs} file.) For example, @kbd{Z P s} would register 30685your Calc init file; that is, the file given by the variable
30681our @code{sincos} command permanently. If you later wish to unregister 30686@code{calc-settings-file}, typically @file{~/.calc.el}.) For example,
30682this command you must edit your @file{.emacs} file by hand. 30687@kbd{Z P s} would register our @code{sincos} command permanently. If
30683(@xref{General Mode Commands}, for a way to tell Calc to use a 30688you later wish to unregister this command you must edit your Calc init
30684different file instead of @file{.emacs}.) 30689file by hand. (@xref{General Mode Commands}, for a way to tell Calc to
30690use a different file for the Calc init file.)
30685 30691
30686The @kbd{Z P} command also saves the user definition, if any, for the 30692The @kbd{Z P} command also saves the user definition, if any, for the
30687command bound to the key. After @kbd{Z F} and @kbd{Z C}, a given user 30693command bound to the key. After @kbd{Z F} and @kbd{Z C}, a given user
@@ -31396,12 +31402,17 @@ step of @code{myfact} could have been written
31396:"n * myfact(n-1)" 31402:"n * myfact(n-1)"
31397@end example 31403@end example
31398 31404
31405A good place to put your @code{defmath} commands is your Calc init file
31406(the file given by @code{calc-settings-file}, typically
31407@file{~/.calc.el}), which will not be loaded until Calc starts.
31399If a file named @file{.emacs} exists in your home directory, Emacs reads 31408If a file named @file{.emacs} exists in your home directory, Emacs reads
31400and executes the Lisp forms in this file as it starts up. While it may 31409and executes the Lisp forms in this file as it starts up. While it may
31401seem like a good idea to put your favorite @code{defmath} commands here, 31410seem reasonable to put your favorite @code{defmath} commands there,
31402this has the unfortunate side-effect that parts of the Calculator must be 31411this has the unfortunate side-effect that parts of the Calculator must be
31403loaded in to process the @code{defmath} commands whether or not you will 31412loaded in to process the @code{defmath} commands whether or not you will
31404actually use the Calculator! A better effect can be had by writing 31413actually use the Calculator! If you want to put the @code{defmath}
31414commands there (for example, if you redefine @code{calc-settings-file}
31415to be @file{.emacs}), a better effect can be had by writing
31405 31416
31406@example 31417@example
31407(put 'calc-define 'thing '(progn 31418(put 'calc-define 'thing '(progn
@@ -34354,7 +34365,7 @@ text. (In fact it may still have leftover text from a previous
34354@defvar calc-mode-save-hook 34365@defvar calc-mode-save-hook
34355This hook is called by the @code{calc-save-modes} command, 34366This hook is called by the @code{calc-save-modes} command,
34356after Calc's own mode features have been inserted into the 34367after Calc's own mode features have been inserted into the
34357@file{.emacs} buffer and just before the ``End of mode settings'' 34368Calc init file and just before the ``End of mode settings''
34358message is inserted. 34369message is inserted.
34359@end defvar 34370@end defvar
34360 34371
@@ -35845,7 +35856,7 @@ as Calc variables. Add a @samp{var-} prefix to get the name of the
35845corresponding Lisp variable. 35856corresponding Lisp variable.
35846 35857
35847The remaining variables are Lisp variables suitable for @code{setq}ing 35858The remaining variables are Lisp variables suitable for @code{setq}ing
35848in your @file{.emacs} file. 35859in your Calc init file or @file{.emacs} file.
35849 35860
35850@printindex vr 35861@printindex vr
35851 35862