Mercurial > emacs
comparison man/custom.texi @ 38744:d7121931b3ba
Show example of specifying C-M-= in Lisp.
Minor cleanup.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 08 Aug 2001 23:38:27 +0000 |
parents | f99d2e5ee830 |
children | 3e5c99acf21a |
comparison
equal
deleted
inserted
replaced
38743:daea04400144 | 38744:d7121931b3ba |
---|---|
11 Manual} for how to make more far-reaching changes. | 11 Manual} for how to make more far-reaching changes. |
12 | 12 |
13 Customization that you do within Emacs normally affects only the | 13 Customization that you do within Emacs normally affects only the |
14 particular Emacs session that you do it in--it does not persist | 14 particular Emacs session that you do it in--it does not persist |
15 between sessions unless you save the customization in a file such as | 15 between sessions unless you save the customization in a file such as |
16 @file{.emacs} or @file{.Xdefaults} that will change future sessions. | 16 @file{.emacs} or @file{.Xdefaults} that will affect future sessions. |
17 @xref{Init File}. In the customization buffer, if you use a | 17 @xref{Init File}. In the customization buffer, when you save |
18 command to save customizations for future sessions, this actually | 18 customizations for future sessions, this actually works by editing |
19 works by editing @file{.emacs} for you. | 19 @file{.emacs} for you. |
20 | 20 |
21 @menu | 21 @menu |
22 * Minor Modes:: Each minor mode is one feature you can turn on | 22 * Minor Modes:: Each minor mode is one feature you can turn on |
23 independently of any others. | 23 independently of any others. |
24 * Variables:: Many Emacs commands examine Emacs variables | 24 * Variables:: Many Emacs commands examine Emacs variables |
109 This requires a window system that can display multiple fonts. | 109 This requires a window system that can display multiple fonts. |
110 @xref{Faces}. | 110 @xref{Faces}. |
111 | 111 |
112 ISO Accents mode makes the characters @samp{`}, @samp{'}, @samp{"}, | 112 ISO Accents mode makes the characters @samp{`}, @samp{'}, @samp{"}, |
113 @samp{^}, @samp{/} and @samp{~} combine with the following letter, to | 113 @samp{^}, @samp{/} and @samp{~} combine with the following letter, to |
114 produce an accented letter in the ISO Latin-1 character set. | 114 produce an accented letter in the ISO Latin-1 character set. The |
115 @xref{Single-Byte Character Support}. | 115 newer and more general feature of input methods more or less |
116 supersedes ISO Accents mode. @xref{Single-Byte Character Support}. | |
116 | 117 |
117 Outline minor mode provides the same facilities as the major mode | 118 Outline minor mode provides the same facilities as the major mode |
118 called Outline mode; but since it is a minor mode instead, you can | 119 called Outline mode; but since it is a minor mode instead, you can |
119 combine it with any major mode. @xref{Outline Mode}. | 120 combine it with any major mode. @xref{Outline Mode}. |
120 | 121 |
357 second-level group is an active field. Invoking the @samp{[Go to | 358 second-level group is an active field. Invoking the @samp{[Go to |
358 Group]} field for a group creates a new customization buffer, which | 359 Group]} field for a group creates a new customization buffer, which |
359 shows that group and its contents. This field is a kind of hypertext | 360 shows that group and its contents. This field is a kind of hypertext |
360 link to another group. | 361 link to another group. |
361 | 362 |
362 The @code{Emacs} group includes a few user options itself, but most | 363 The @code{Emacs} group includes a few user options itself, but |
363 of them are in other groups. By examining various groups, you will | 364 mainly it contains other groups, which contain more groups, which |
364 eventually find the options and faces that belong to the feature you | 365 contain the user options. By browsing the hierarchy of groups, you |
365 are interested in customizing. Then you can use the customization | 366 will eventually find the feature you are interested in customizing. |
366 buffer to set them. You can go straight to a particular group by name | 367 Then you can use the customization buffer to set the options and faces |
367 using the command @kbd{M-x customize-group}. | 368 pertaining to that feature. You can also go straight to a particular |
369 group by name, using the command @kbd{M-x customize-group}. | |
368 | 370 |
369 @findex customize-browse | 371 @findex customize-browse |
370 You can view the structure of customization groups on a larger scale | 372 You can view the structure of customization groups on a larger scale |
371 with @kbd{M-x customize-browse}. This command creates a special kind of | 373 with @kbd{M-x customize-browse}. This command creates a special kind of |
372 customization buffer which shows only the names of the groups (and | 374 customization buffer which shows only the names of the groups (and |
1617 delimiters or punctuation are needed. If a vector element is a | 1619 delimiters or punctuation are needed. If a vector element is a |
1618 character, write it as a Lisp character constant: @samp{?} followed by | 1620 character, write it as a Lisp character constant: @samp{?} followed by |
1619 the character as it would appear in a string. | 1621 the character as it would appear in a string. |
1620 | 1622 |
1621 Here are examples of using vectors to rebind @kbd{C-=} (a control | 1623 Here are examples of using vectors to rebind @kbd{C-=} (a control |
1622 character not in ASCII), @kbd{H-a} (a Hyper character; ASCII doesn't | 1624 character not in ASCII), @kbd{C-M-=} (not in ASCII because @kbd{C-=} |
1623 have Hyper at all), @key{F7} (a function key), and @kbd{C-Mouse-1} (a | 1625 is not), @kbd{H-a} (a Hyper character; ASCII doesn't have Hyper at |
1626 all), @key{F7} (a function key), and @kbd{C-Mouse-1} (a | |
1624 keyboard-modified mouse button): | 1627 keyboard-modified mouse button): |
1625 | 1628 |
1626 @example | 1629 @example |
1627 (global-set-key [?\C-=] 'make-symbolic-link) | 1630 (global-set-key [?\C-=] 'make-symbolic-link) |
1631 (global-set-key [?\M-\C-=] 'make-symbolic-link) | |
1628 (global-set-key [?\H-a] 'make-symbolic-link) | 1632 (global-set-key [?\H-a] 'make-symbolic-link) |
1629 (global-set-key [f7] 'make-symbolic-link) | 1633 (global-set-key [f7] 'make-symbolic-link) |
1630 (global-set-key [C-mouse-1] 'make-symbolic-link) | 1634 (global-set-key [C-mouse-1] 'make-symbolic-link) |
1631 @end example | 1635 @end example |
1632 | 1636 |
1869 moment when you press it down for the second time, Emacs gets a | 1873 moment when you press it down for the second time, Emacs gets a |
1870 @samp{double-down-} event (which is ignored, like all button-down | 1874 @samp{double-down-} event (which is ignored, like all button-down |
1871 events, if it has no binding). | 1875 events, if it has no binding). |
1872 | 1876 |
1873 @vindex double-click-time | 1877 @vindex double-click-time |
1874 The variable @code{double-click-time} specifies how long may elapse | 1878 The variable @code{double-click-time} specifies how much time can |
1875 between clicks that are recognized as a pair. Its value is measured | 1879 elapse between clicks and still allow them to be grouped as a multiple |
1876 in milliseconds. If the value is @code{nil}, double clicks are not | 1880 click. Its value is in units of milliseconds. If the value is |
1877 detected at all. If the value is @code{t}, then there is no time | 1881 @code{nil}, double clicks are not detected at all. If the value is |
1878 limit. | 1882 @code{t}, then there is no time limit. |
1879 | 1883 |
1880 @vindex double-click-fuzz | 1884 @vindex double-click-fuzz |
1881 The variable @code{double-click-fuzz} specifies how much the mouse | 1885 The variable @code{double-click-fuzz} specifies how much the mouse |
1882 may be moved between clicks that are recognized as a pair. Its value | 1886 can move between clicks still allow them to be grouped as a multiple |
1883 is measured in pixels. | 1887 click. Its value is in units of pixels. |
1884 | 1888 |
1885 The symbols for mouse events also indicate the status of the modifier | 1889 The symbols for mouse events also indicate the status of the modifier |
1886 keys, with the usual prefixes @samp{C-}, @samp{M-}, @samp{H-}, | 1890 keys, with the usual prefixes @samp{C-}, @samp{M-}, @samp{H-}, |
1887 @samp{s-}, @samp{A-} and @samp{S-}. These always precede @samp{double-} | 1891 @samp{s-}, @samp{A-} and @samp{S-}. These always precede @samp{double-} |
1888 or @samp{triple-}, which always precede @samp{drag-} or @samp{down-}. | 1892 or @samp{triple-}, which always precede @samp{drag-} or @samp{down-}. |