Mercurial > emacs
comparison man/custom.texi @ 37354:39aa69a68098
(Init Syntax): Add a cross reference to "Non-ASCII Rebinding".
(Init Examples): Show how to add an autoload form.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 15 Apr 2001 06:47:20 +0000 |
parents | d2c4a8eb274a |
children | 201fa171a6e2 |
comparison
equal
deleted
inserted
replaced
37353:405bb463989f | 37354:39aa69a68098 |
---|---|
2089 @kbd{Control-Meta-A}.@refill | 2089 @kbd{Control-Meta-A}.@refill |
2090 | 2090 |
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 |
2099 which use such strings, possibly leading Emacs to decode those strings | 2099 which use such strings, possibly leading Emacs to decode those strings |
2100 incorrectly. | 2100 incorrectly. |
2104 either a character or an escape sequence starting with @samp{\}. | 2104 either a character or an escape sequence starting with @samp{\}. |
2105 Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that | 2105 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 |
2112 @item False: | 2115 @item False: |
2113 @code{nil} stands for `false'. | 2116 @code{nil} stands for `false'. |
2225 @example | 2228 @example |
2226 (load "~/foo.elc") | 2229 (load "~/foo.elc") |
2227 @end example | 2230 @end example |
2228 | 2231 |
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. |
2233 | |
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. | |
2230 | 2251 |
2231 @item | 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 |