changeset 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 405bb463989f
children 981fa38deecf
files man/custom.texi
diffstat 1 files changed, 23 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/man/custom.texi	Sun Apr 15 06:19:58 2001 +0000
+++ b/man/custom.texi	Sun Apr 15 06:47:20 2001 +0000
@@ -2091,8 +2091,8 @@
 @cindex international characters in @file{.emacs}
 @cindex non-ASCII characters in @file{.emacs}
 If you want to include non-ASCII characters in strings in your init
-file, you should consider putting a @samp{-*-coding:
-@var{coding-system}-*-} tag on the first line which states the coding
+file, you should consider putting a @w{@samp{-*-coding:
+@var{coding-system}-*-}} tag on the first line which states the coding
 system used to save your @file{.emacs}, as explained in @ref{Recognize
 Coding}.  This is because the defaults for decoding non-ASCII text might
 not yet be set up by the time Emacs reads those parts of your init file
@@ -2106,6 +2106,9 @@
 strings and characters are not interchangeable in Lisp; some contexts
 require one and some contexts require the other.
 
+@xref{Non-ASCII Rebinding}, for information about binding commands to
+keys which send non-ASCII characters.
+
 @item True:
 @code{t} stands for `true'.
 
@@ -2229,6 +2232,24 @@
 Here an absolute file name is used, so no searching is done.
 
 @item
+@cindex loading Lisp libraries automatically
+@cindex autoload Lisp libraries
+Tell Emacs to automatically load a Lisp library named @file{mypackage}
+(i.e.@: a file @file{mypackage.elc} or @file{mypackage.el}) when you
+the function @code{myfunction} in that library is called:
+
+@example
+(autoload 'myfunction "mypackage" "Do what I say." t)
+@end example
+
+@noindent
+Here the string @code{"Do what I say."} is the function's documentation
+string made available to Emacs even when the package is not loaded
+(e.g., for commands such as @kbd{C-h a}), and @code{t} tells Emacs this
+function is interactive, that is, it can be invoked interactively by
+typing @kbd{M-x myfunction @key{RET}} or by binding it to a key.
+
+@item
 Rebind the key @kbd{C-x l} to run the function @code{make-symbolic-link}.
 
 @example