Mercurial > hg > xemacs-beta
comparison man/xemacs/custom.texi @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 84b14dcb0985 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
28 are parsed. | 28 are parsed. |
29 * Init File:: How to write common customizations in the @file{.emacs} | 29 * Init File:: How to write common customizations in the @file{.emacs} |
30 file. | 30 file. |
31 * Audible Bell:: Changing how Emacs sounds the bell. | 31 * Audible Bell:: Changing how Emacs sounds the bell. |
32 * Faces:: Changing the fonts and colors of a region of text. | 32 * Faces:: Changing the fonts and colors of a region of text. |
33 * X Resources:: X resources controlling various aspects of the | 33 * X Resources:: X resources controlling various aspects of the |
34 behavior of XEmacs. | 34 behavior of XEmacs. |
35 @end menu | 35 @end menu |
36 | 36 |
37 @node Minor Modes | 37 @node Minor Modes |
38 @section Minor Modes | 38 @section Minor Modes |
759 If the first line of a file contains two occurrences of @code{`-*-'}, | 759 If the first line of a file contains two occurrences of @code{`-*-'}, |
760 XEmacs uses the information between them to determine what the major | 760 XEmacs uses the information between them to determine what the major |
761 mode and variable settings should be. For example, these are all legal: | 761 mode and variable settings should be. For example, these are all legal: |
762 | 762 |
763 @example | 763 @example |
764 ;;; -*- mode: emacs-lisp -*- | 764 ;;; -*- mode: emacs-lisp -*- |
765 ;;; -*- mode: postscript; version-control: never -*- | 765 ;;; -*- mode: postscript; version-control: never -*- |
766 ;;; -*- tags-file-name: "/foo/bar/TAGS" -*- | 766 ;;; -*- tags-file-name: "/foo/bar/TAGS" -*- |
767 @end example | 767 @end example |
768 | 768 |
769 For historical reasons, the syntax @code{`-*- modename -*-'} is allowed | 769 For historical reasons, the syntax @code{`-*- modename -*-'} is allowed |
770 as well; for example, you can use: | 770 as well; for example, you can use: |
771 | 771 |
772 @example | 772 @example |
773 ;;; -*- emacs-lisp -*- | 773 ;;; -*- emacs-lisp -*- |
774 @end example | 774 @end example |
775 | 775 |
776 @vindex enable-local-variables | 776 @vindex enable-local-variables |
777 The variable @code{enable-local-variables} controls the use of local | 777 The variable @code{enable-local-variables} controls the use of local |
778 variables lists in files you visit. The value can be @code{t}, | 778 variables lists in files you visit. The value can be @code{t}, |
1230 Here are some examples of programmatically binding keys: | 1230 Here are some examples of programmatically binding keys: |
1231 | 1231 |
1232 @example | 1232 @example |
1233 | 1233 |
1234 ;;; Bind @code{my-command} to @key{f1} | 1234 ;;; Bind @code{my-command} to @key{f1} |
1235 (global-set-key 'f1 'my-command) | 1235 (global-set-key 'f1 'my-command) |
1236 | 1236 |
1237 ;;; Bind @code{my-command} to @kbd{Shift-f1} | 1237 ;;; Bind @code{my-command} to @kbd{Shift-f1} |
1238 (global-set-key '(shift f1) 'my-command) | 1238 (global-set-key '(shift f1) 'my-command) |
1239 | 1239 |
1240 ;;; Bind @code{my-command} to @kbd{C-c Shift-f1} | 1240 ;;; Bind @code{my-command} to @kbd{C-c Shift-f1} |
1241 (global-set-key '[(control c) (shift f1)] 'my-command) | 1241 (global-set-key '[(control c) (shift f1)] 'my-command) |
1242 | 1242 |
1243 ;;; Bind @code{my-command} to the middle mouse button. | 1243 ;;; Bind @code{my-command} to the middle mouse button. |
1244 (global-set-key 'button2 'my-command) | 1244 (global-set-key 'button2 'my-command) |
1245 | 1245 |
1246 ;;; Bind @code{my-command} to @kbd{@key{META} @key{CTL} @key{Right Mouse Button}} | 1246 ;;; Bind @code{my-command} to @kbd{@key{META} @key{CTL} @key{Right Mouse Button}} |
1286 | 1286 |
1287 @cindex redefining keys | 1287 @cindex redefining keys |
1288 After binding a command to two key sequences with a form like: | 1288 After binding a command to two key sequences with a form like: |
1289 | 1289 |
1290 @example | 1290 @example |
1291 (define-key global-map "\^X\^I" 'command-1) | 1291 (define-key global-map "\^X\^I" 'command-1) |
1292 @end example | 1292 @end example |
1293 | 1293 |
1294 it is possible to redefine only one of those sequences like so: | 1294 it is possible to redefine only one of those sequences like so: |
1295 | 1295 |
1296 @example | 1296 @example |
1297 (define-key global-map [(control x) (control i)] 'command-2) | 1297 (define-key global-map [(control x) (control i)] 'command-2) |
1298 (define-key global-map [(control x) tab] 'command-3) | 1298 (define-key global-map [(control x) tab] 'command-3) |
1299 @end example | 1299 @end example |
1300 | 1300 |
1301 This applies only when running under a window system. If you are | 1301 This applies only when running under a window system. If you are |
1302 talking to Emacs through an ASCII-only channel, you do not get any of | 1302 talking to Emacs through an ASCII-only channel, you do not get any of |
1303 these features. | 1303 these features. |
1916 The Emacs command loop catches an error | 1916 The Emacs command loop catches an error |
1917 | 1917 |
1918 @item undefined-key | 1918 @item undefined-key |
1919 You type a key that is undefined | 1919 You type a key that is undefined |
1920 | 1920 |
1921 @item undefined-click | 1921 @item undefined-click |
1922 You use an undefined mouse-click combination | 1922 You use an undefined mouse-click combination |
1923 | 1923 |
1924 @item no-completion | 1924 @item no-completion |
1925 Completion was not possible | 1925 Completion was not possible |
1926 | 1926 |
1927 @item y-or-n-p | 1927 @item y-or-n-p |
1928 You type something other than the required @code{y} or @code{n} | 1928 You type something other than the required @code{y} or @code{n} |
1929 | 1929 |
1930 @item yes-or-no-p | 1930 @item yes-or-no-p |
1931 You type something other than @code{yes} or @code{no} | 1931 You type something other than @code{yes} or @code{no} |
1932 @end table | 1932 @end table |
1933 | 1933 |
1934 @comment node-name, next, previous, up | 1934 @comment node-name, next, previous, up |
1935 @node Faces | 1935 @node Faces |
2064 run both variants. | 2064 run both variants. |
2065 | 2065 |
2066 Starting with XEmacs 21, XEmacs uses the class @samp{XEmacs} if it finds | 2066 Starting with XEmacs 21, XEmacs uses the class @samp{XEmacs} if it finds |
2067 any XEmacs resources in the resource database when the X connection is | 2067 any XEmacs resources in the resource database when the X connection is |
2068 initialized. Otherwise, it will use the class @samp{Emacs} for | 2068 initialized. Otherwise, it will use the class @samp{Emacs} for |
2069 backwards compatability. The variable @var{x-emacs-application-class} | 2069 backwards compatibility. The variable @var{x-emacs-application-class} |
2070 may be consulted to determine the application class being used. | 2070 may be consulted to determine the application class being used. |
2071 | 2071 |
2072 The examples in this section assume the application class is @samp{Emacs}. | 2072 The examples in this section assume the application class is @samp{Emacs}. |
2073 | 2073 |
2074 The Emacs resources are generally set per-frame. Each Emacs frame can have | 2074 The Emacs resources are generally set per-frame. Each Emacs frame can have |
2096 @end example | 2096 @end example |
2097 @noindent | 2097 @noindent |
2098 | 2098 |
2099 @menu | 2099 @menu |
2100 * Geometry Resources:: Controlling the size and position of frames. | 2100 * Geometry Resources:: Controlling the size and position of frames. |
2101 * Iconic Resources:: Controlling whether frames come up iconic. | 2101 * Iconic Resources:: Controlling whether frames come up iconic. |
2102 * Resource List:: List of resources settable on a frame or device. | 2102 * Resource List:: List of resources settable on a frame or device. |
2103 * Face Resources:: Controlling faces using resources. | 2103 * Face Resources:: Controlling faces using resources. |
2104 * Widgets:: The widget hierarchy for XEmacs. | 2104 * Widgets:: The widget hierarchy for XEmacs. |
2105 * Menubar Resources:: Specifying resources for the menubar. | 2105 * Menubar Resources:: Specifying resources for the menubar. |
2106 @end menu | 2106 @end menu |
2107 | 2107 |
2108 @node Geometry Resources | 2108 @node Geometry Resources |
2109 @subsection Geometry Resources | 2109 @subsection Geometry Resources |
2110 | 2110 |