12268 |
@kindex m F |
@kindex m F |
12269 |
@pindex calc-settings-file-name |
@pindex calc-settings-file-name |
12270 |
The @kbd{m F} (@code{calc-settings-file-name}) command allows you to |
The @kbd{m F} (@code{calc-settings-file-name}) command allows you to |
12271 |
choose a different place than your @file{.emacs} file for @kbd{m m}, |
choose a different file than the current value of @code{calc-settings-file} |
12272 |
@kbd{Z P}, and similar commands to save permanent information. |
for @kbd{m m}, @kbd{Z P}, and similar commands to save permanent information. |
12273 |
You are prompted for a file name. All Calc modes are then reset to |
You are prompted for a file name. All Calc modes are then reset to |
12274 |
their default values, then settings from the file you named are loaded |
their default values, then settings from the file you named are loaded |
12275 |
if this file exists, and this file becomes the one that Calc will |
if this file exists, and this file becomes the one that Calc will |
12276 |
use in the future for commands like @kbd{m m}. The default settings |
use in the future for commands like @kbd{m m}. The default settings |
12277 |
file name is @file{~/.emacs}. You can see the current file name by |
file name is @file{~/.calc.el}. You can see the current file name by |
12278 |
giving a blank response to the @kbd{m F} prompt. See also the |
giving a blank response to the @kbd{m F} prompt. See also the |
12279 |
discussion of the @code{calc-settings-file} variable; @pxref{Installation}. |
discussion of the @code{calc-settings-file} variable; @pxref{Installation}. |
12280 |
|
|
12281 |
If the file name you give contains the string @samp{.emacs} anywhere |
If the file name you give is your user init file (typically |
12282 |
inside it, @kbd{m F} will not automatically load the new file. This |
@file{~/.emacs}), @kbd{m F} will not automatically load the new file. This |
12283 |
is because you are presumably switching to your @file{~/.emacs} file, |
is because your user init file may contain other things you don't want |
12284 |
which may contain other things you don't want to reread. You can give |
to reread. You can give |
12285 |
a numeric prefix argument of 1 to @kbd{m F} to force it to read the |
a numeric prefix argument of 1 to @kbd{m F} to force it to read the |
12286 |
file no matter what its name. Conversely, an argument of @mathit{-1} tells |
file no matter what. Conversely, an argument of @mathit{-1} tells |
12287 |
@kbd{m F} @emph{not} to read the new file. An argument of 2 or @mathit{-2} |
@kbd{m F} @emph{not} to read the new file. An argument of 2 or @mathit{-2} |
12288 |
tells @kbd{m F} not to reset the modes to their defaults beforehand, |
tells @kbd{m F} not to reset the modes to their defaults beforehand, |
12289 |
which is useful if you intend your new file to have a variant of the |
which is useful if you intend your new file to have a variant of the |
34497 |
Another variable you might want to set is @code{calc-settings-file}, |
Another variable you might want to set is @code{calc-settings-file}, |
34498 |
which holds the file name in which commands like @kbd{m m} and @kbd{Z P} |
which holds the file name in which commands like @kbd{m m} and @kbd{Z P} |
34499 |
store ``permanent'' definitions. The default value for this variable |
store ``permanent'' definitions. The default value for this variable |
34500 |
is @code{"~/.emacs"}. If @code{calc-settings-file} does not contain |
is @code{"~/.calc.el"}. If @code{calc-settings-file} is not your user |
34501 |
@code{".emacs"} as a substring, and if the variable |
init file (typically @file{~/.emacs}) and if the variable |
34502 |
@code{calc-loaded-settings-file} is @code{nil}, then Calc will |
@code{calc-loaded-settings-file} is @code{nil}, then Calc will |
34503 |
automatically load your settings file (if it exists) the first time |
automatically load your settings file (if it exists) the first time |
34504 |
Calc is invoked. |
Calc is invoked. |