summaryrefslogtreecommitdiff
path: root/man/custom.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-04-15 06:47:20 +0000
committerEli Zaretskii <eliz@gnu.org>2001-04-15 06:47:20 +0000
commitbbde444233037cb56b444a2500b8f51cda47655f (patch)
tree90e9cfad78fe56675f602474bdc65fcff729305a /man/custom.texi
parentb14b5f084ddd139fdbdec5b4b8fcf628c24d3083 (diff)
downloademacs-bbde444233037cb56b444a2500b8f51cda47655f.tar.gz
(Init Syntax): Add a cross reference to "Non-ASCII Rebinding".
(Init Examples): Show how to add an autoload form.
Diffstat (limited to 'man/custom.texi')
-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
@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 @@ Examples: @code{?x}, @code{?\n}, @code{?\"}, @code{?\)}. Note that
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 @@ Load the compiled Lisp file @file{foo.elc} from your home directory.
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