diff options
| author | Eli Zaretskii | 2001-04-15 06:47:20 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-04-15 06:47:20 +0000 |
| commit | bbde444233037cb56b444a2500b8f51cda47655f (patch) | |
| tree | 90e9cfad78fe56675f602474bdc65fcff729305a | |
| parent | b14b5f084ddd139fdbdec5b4b8fcf628c24d3083 (diff) | |
| download | emacs-bbde444233037cb56b444a2500b8f51cda47655f.tar.gz emacs-bbde444233037cb56b444a2500b8f51cda47655f.zip | |
(Init Syntax): Add a cross reference to "Non-ASCII Rebinding".
(Init Examples): Show how to add an autoload form.
| -rw-r--r-- | man/custom.texi | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/man/custom.texi b/man/custom.texi index 08f739771cd..b481fdb122a 100644 --- a/man/custom.texi +++ b/man/custom.texi | |||
| @@ -2091,8 +2091,8 @@ a Meta character, as in @samp{\M-a} for @kbd{Meta-A} or @samp{\M-\C-a} for | |||
| 2091 | @cindex international characters in @file{.emacs} | 2091 | @cindex international characters in @file{.emacs} |
| 2092 | @cindex non-ASCII characters in @file{.emacs} | 2092 | @cindex non-ASCII characters in @file{.emacs} |
| 2093 | If you want to include non-ASCII characters in strings in your init | 2093 | If you want to include non-ASCII characters in strings in your init |
| 2094 | file, you should consider putting a @samp{-*-coding: | 2094 | file, you should consider putting a @w{@samp{-*-coding: |
| 2095 | @var{coding-system}-*-} tag on the first line which states the coding | 2095 | @var{coding-system}-*-}} tag on the first line which states the coding |
| 2096 | system used to save your @file{.emacs}, as explained in @ref{Recognize | 2096 | system used to save your @file{.emacs}, as explained in @ref{Recognize |
| 2097 | Coding}. This is because the defaults for decoding non-ASCII text might | 2097 | Coding}. This is because the defaults for decoding non-ASCII text might |
| 2098 | not yet be set up by the time Emacs reads those parts of your init file | 2098 | not yet be set up by the time Emacs reads those parts of your init file |
| @@ -2106,6 +2106,9 @@ Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that | |||
| 2106 | strings and characters are not interchangeable in Lisp; some contexts | 2106 | strings and characters are not interchangeable in Lisp; some contexts |
| 2107 | require one and some contexts require the other. | 2107 | require one and some contexts require the other. |
| 2108 | 2108 | ||
| 2109 | @xref{Non-ASCII Rebinding}, for information about binding commands to | ||
| 2110 | keys which send non-ASCII characters. | ||
| 2111 | |||
| 2109 | @item True: | 2112 | @item True: |
| 2110 | @code{t} stands for `true'. | 2113 | @code{t} stands for `true'. |
| 2111 | 2114 | ||
| @@ -2229,6 +2232,24 @@ Load the compiled Lisp file @file{foo.elc} from your home directory. | |||
| 2229 | Here an absolute file name is used, so no searching is done. | 2232 | Here an absolute file name is used, so no searching is done. |
| 2230 | 2233 | ||
| 2231 | @item | 2234 | @item |
| 2235 | @cindex loading Lisp libraries automatically | ||
| 2236 | @cindex autoload Lisp libraries | ||
| 2237 | Tell Emacs to automatically load a Lisp library named @file{mypackage} | ||
| 2238 | (i.e.@: a file @file{mypackage.elc} or @file{mypackage.el}) when you | ||
| 2239 | the function @code{myfunction} in that library is called: | ||
| 2240 | |||
| 2241 | @example | ||
| 2242 | (autoload 'myfunction "mypackage" "Do what I say." t) | ||
| 2243 | @end example | ||
| 2244 | |||
| 2245 | @noindent | ||
| 2246 | Here the string @code{"Do what I say."} is the function's documentation | ||
| 2247 | string made available to Emacs even when the package is not loaded | ||
| 2248 | (e.g., for commands such as @kbd{C-h a}), and @code{t} tells Emacs this | ||
| 2249 | function is interactive, that is, it can be invoked interactively by | ||
| 2250 | typing @kbd{M-x myfunction @key{RET}} or by binding it to a key. | ||
| 2251 | |||
| 2252 | @item | ||
| 2232 | Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}. | 2253 | Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}. |
| 2233 | 2254 | ||
| 2234 | @example | 2255 | @example |