aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-04-15 06:47:20 +0000
committerEli Zaretskii2001-04-15 06:47:20 +0000
commitbbde444233037cb56b444a2500b8f51cda47655f (patch)
tree90e9cfad78fe56675f602474bdc65fcff729305a
parentb14b5f084ddd139fdbdec5b4b8fcf628c24d3083 (diff)
downloademacs-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.texi25
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}
2093If you want to include non-ASCII characters in strings in your init 2093If you want to include non-ASCII characters in strings in your init
2094file, you should consider putting a @samp{-*-coding: 2094file, 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
2096system used to save your @file{.emacs}, as explained in @ref{Recognize 2096system used to save your @file{.emacs}, as explained in @ref{Recognize
2097Coding}. This is because the defaults for decoding non-ASCII text might 2097Coding}. This is because the defaults for decoding non-ASCII text might
2098not yet be set up by the time Emacs reads those parts of your init file 2098not 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
2106strings and characters are not interchangeable in Lisp; some contexts 2106strings and characters are not interchangeable in Lisp; some contexts
2107require one and some contexts require the other. 2107require one and some contexts require the other.
2108 2108
2109@xref{Non-ASCII Rebinding}, for information about binding commands to
2110keys 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.
2229Here an absolute file name is used, so no searching is done. 2232Here 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
2237Tell Emacs to automatically load a Lisp library named @file{mypackage}
2238(i.e.@: a file @file{mypackage.elc} or @file{mypackage.el}) when you
2239the 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
2246Here the string @code{"Do what I say."} is the function's documentation
2247string 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
2249function is interactive, that is, it can be invoked interactively by
2250typing @kbd{M-x myfunction @key{RET}} or by binding it to a key.
2251
2252@item
2232Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}. 2253Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}.
2233 2254
2234@example 2255@example