Mercurial > emacs
comparison doc/misc/calc.texi @ 107712:6a80fb868018
Change name of default value of calc-settings-file to ~/.emacs.d/calc.el throughout.
author | Jay Belanger <jay.p.belanger@gmail.com> |
---|---|
date | Tue, 30 Mar 2010 22:47:52 -0500 |
parents | 9f1e7ba8288c |
children | b2e098d47dff |
comparison
equal
deleted
inserted
replaced
107710:db1a1651507b | 107712:6a80fb868018 |
---|---|
12165 for @kbd{m m}, @kbd{Z P}, and similar commands to save permanent information. | 12165 for @kbd{m m}, @kbd{Z P}, and similar commands to save permanent information. |
12166 You are prompted for a file name. All Calc modes are then reset to | 12166 You are prompted for a file name. All Calc modes are then reset to |
12167 their default values, then settings from the file you named are loaded | 12167 their default values, then settings from the file you named are loaded |
12168 if this file exists, and this file becomes the one that Calc will | 12168 if this file exists, and this file becomes the one that Calc will |
12169 use in the future for commands like @kbd{m m}. The default settings | 12169 use in the future for commands like @kbd{m m}. The default settings |
12170 file name is @file{~/.calc.el}. You can see the current file name by | 12170 file name is @file{~/.emacs.d/calc.el}. You can see the current file name by |
12171 giving a blank response to the @kbd{m F} prompt. See also the | 12171 giving a blank response to the @kbd{m F} prompt. See also the |
12172 discussion of the @code{calc-settings-file} variable; @pxref{Customizing Calc}. | 12172 discussion of the @code{calc-settings-file} variable; @pxref{Customizing Calc}. |
12173 | 12173 |
12174 If the file name you give is your user init file (typically | 12174 If the file name you give is your user init file (typically |
12175 @file{~/.emacs}), @kbd{m F} will not automatically load the new file. This | 12175 @file{~/.emacs}), @kbd{m F} will not automatically load the new file. This |
16004 | 16004 |
16005 @item Break | 16005 @item Break |
16006 Selections show deep structure (@kbd{j b}; @pxref{Making Selections}). | 16006 Selections show deep structure (@kbd{j b}; @pxref{Making Selections}). |
16007 | 16007 |
16008 @item Save | 16008 @item Save |
16009 Record modes in @file{~/.calc.el} (@kbd{m R}; @pxref{General Mode Commands}). | 16009 Record modes in @file{~/.emacs.d/calc.el} (@kbd{m R}; @pxref{General Mode Commands}). |
16010 | 16010 |
16011 @item Local | 16011 @item Local |
16012 Record modes in Embedded buffer (@kbd{m R}). | 16012 Record modes in Embedded buffer (@kbd{m R}). |
16013 | 16013 |
16014 @item LocEdit | 16014 @item LocEdit |
28106 @kindex u p | 28106 @kindex u p |
28107 @pindex calc-permanent-units | 28107 @pindex calc-permanent-units |
28108 @cindex Calc init file, user-defined units | 28108 @cindex Calc init file, user-defined units |
28109 The @kbd{u p} (@code{calc-permanent-units}) command stores the user-defined | 28109 The @kbd{u p} (@code{calc-permanent-units}) command stores the user-defined |
28110 units in your Calc init file (the file given by the variable | 28110 units in your Calc init file (the file given by the variable |
28111 @code{calc-settings-file}, typically @file{~/.calc.el}), so that the | 28111 @code{calc-settings-file}, typically @file{~/.emacs.d/calc.el}), so that the |
28112 units will still be available in subsequent Emacs sessions. If there | 28112 units will still be available in subsequent Emacs sessions. If there |
28113 was already a set of user-defined units in your Calc init file, it | 28113 was already a set of user-defined units in your Calc init file, it |
28114 is replaced by the new set. (@xref{General Mode Commands}, for a way to | 28114 is replaced by the new set. (@xref{General Mode Commands}, for a way to |
28115 tell Calc to use a different file for the Calc init file.) | 28115 tell Calc to use a different file for the Calc init file.) |
28116 | 28116 |
28507 @cindex Storing variables | 28507 @cindex Storing variables |
28508 @cindex Permanent variables | 28508 @cindex Permanent variables |
28509 @cindex Calc init file, variables | 28509 @cindex Calc init file, variables |
28510 The @kbd{s p} (@code{calc-permanent-variable}) command saves a | 28510 The @kbd{s p} (@code{calc-permanent-variable}) command saves a |
28511 variable's value permanently in your Calc init file (the file given by | 28511 variable's value permanently in your Calc init file (the file given by |
28512 the variable @code{calc-settings-file}, typically @file{~/.calc.el}), so | 28512 the variable @code{calc-settings-file}, typically @file{~/.emacs.d/calc.el}), so |
28513 that its value will still be available in future Emacs sessions. You | 28513 that its value will still be available in future Emacs sessions. You |
28514 can re-execute @w{@kbd{s p}} later on to update the saved value, but the | 28514 can re-execute @w{@kbd{s p}} later on to update the saved value, but the |
28515 only way to remove a saved variable is to edit your calc init file | 28515 only way to remove a saved variable is to edit your calc init file |
28516 by hand. (@xref{General Mode Commands}, for a way to tell Calc to | 28516 by hand. (@xref{General Mode Commands}, for a way to tell Calc to |
28517 use a different file for the Calc init file.) | 28517 use a different file for the Calc init file.) |
30860 | 30860 |
30861 Two more mode-recording modes selectable by @kbd{m R} are available | 30861 Two more mode-recording modes selectable by @kbd{m R} are available |
30862 which are also available outside of Embedded mode. | 30862 which are also available outside of Embedded mode. |
30863 (@pxref{General Mode Commands}.) They are @code{Save}, in which mode | 30863 (@pxref{General Mode Commands}.) They are @code{Save}, in which mode |
30864 settings are recorded permanently in your Calc init file (the file given | 30864 settings are recorded permanently in your Calc init file (the file given |
30865 by the variable @code{calc-settings-file}, typically @file{~/.calc.el}) | 30865 by the variable @code{calc-settings-file}, typically @file{~/.emacs.d/calc.el}) |
30866 rather than by annotating the current document, and no-recording | 30866 rather than by annotating the current document, and no-recording |
30867 mode (where there is no symbol like @code{Save} or @code{Local} in | 30867 mode (where there is no symbol like @code{Save} or @code{Local} in |
30868 the mode line), in which mode-changing commands do not leave any | 30868 the mode line), in which mode-changing commands do not leave any |
30869 annotations at all. | 30869 annotations at all. |
30870 | 30870 |
31120 @cindex Calc init file, user-defined commands | 31120 @cindex Calc init file, user-defined commands |
31121 The @kbd{Z P} (@code{calc-user-define-permanent}) command makes a key | 31121 The @kbd{Z P} (@code{calc-user-define-permanent}) command makes a key |
31122 binding permanent so that it will remain in effect even in future Emacs | 31122 binding permanent so that it will remain in effect even in future Emacs |
31123 sessions. (It does this by adding a suitable bit of Lisp code into | 31123 sessions. (It does this by adding a suitable bit of Lisp code into |
31124 your Calc init file; that is, the file given by the variable | 31124 your Calc init file; that is, the file given by the variable |
31125 @code{calc-settings-file}, typically @file{~/.calc.el}.) For example, | 31125 @code{calc-settings-file}, typically @file{~/.emacs.d/calc.el}.) For example, |
31126 @kbd{Z P s} would register our @code{sincos} command permanently. If | 31126 @kbd{Z P s} would register our @code{sincos} command permanently. If |
31127 you later wish to unregister this command you must edit your Calc init | 31127 you later wish to unregister this command you must edit your Calc init |
31128 file by hand. (@xref{General Mode Commands}, for a way to tell Calc to | 31128 file by hand. (@xref{General Mode Commands}, for a way to tell Calc to |
31129 use a different file for the Calc init file.) | 31129 use a different file for the Calc init file.) |
31130 | 31130 |
31853 :"n * myfact(n-1)" | 31853 :"n * myfact(n-1)" |
31854 @end example | 31854 @end example |
31855 | 31855 |
31856 A good place to put your @code{defmath} commands is your Calc init file | 31856 A good place to put your @code{defmath} commands is your Calc init file |
31857 (the file given by @code{calc-settings-file}, typically | 31857 (the file given by @code{calc-settings-file}, typically |
31858 @file{~/.calc.el}), which will not be loaded until Calc starts. | 31858 @file{~/.emacs.d/calc.el}), which will not be loaded until Calc starts. |
31859 If a file named @file{.emacs} exists in your home directory, Emacs reads | 31859 If a file named @file{.emacs} exists in your home directory, Emacs reads |
31860 and executes the Lisp forms in this file as it starts up. While it may | 31860 and executes the Lisp forms in this file as it starts up. While it may |
31861 seem reasonable to put your favorite @code{defmath} commands there, | 31861 seem reasonable to put your favorite @code{defmath} commands there, |
31862 this has the unfortunate side-effect that parts of the Calculator must be | 31862 this has the unfortunate side-effect that parts of the Calculator must be |
31863 loaded in to process the @code{defmath} commands whether or not you will | 31863 loaded in to process the @code{defmath} commands whether or not you will |
34954 If @code{calc-settings-file} is not your user init file (typically | 34954 If @code{calc-settings-file} is not your user init file (typically |
34955 @file{~/.emacs}) and if the variable @code{calc-loaded-settings-file} is | 34955 @file{~/.emacs}) and if the variable @code{calc-loaded-settings-file} is |
34956 @code{nil}, then Calc will automatically load your settings file (if it | 34956 @code{nil}, then Calc will automatically load your settings file (if it |
34957 exists) the first time Calc is invoked. | 34957 exists) the first time Calc is invoked. |
34958 | 34958 |
34959 The default value for this variable is @code{"~/.calc.el"}. | 34959 The default value for this variable is @code{"~/.emacs.d/calc.el"} |
34960 unless the file @file{~/.calc.el} exists, in which case the default | |
34961 value will be @code{"~/.calc.el"}. | |
34960 @end defvar | 34962 @end defvar |
34961 | 34963 |
34962 @defvar calc-gnuplot-name | 34964 @defvar calc-gnuplot-name |
34963 See @ref{Graphics}.@* | 34965 See @ref{Graphics}.@* |
34964 The variable @code{calc-gnuplot-name} should be the name of the | 34966 The variable @code{calc-gnuplot-name} should be the name of the |