Mercurial > hg > xemacs-beta
comparison man/xemacs-faq.texi @ 1386:fea518919305
[xemacs-hg @ 2003-03-26 06:10:47 by stephent]
X resource FAQs <87d6key80m.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 26 Mar 2003 06:10:47 +0000 |
parents | 473e76fb6d95 |
children | 6355bae896e3 |
comparison
equal
deleted
inserted
replaced
1385:cb7e08ff87e8 | 1386:fea518919305 |
---|---|
5 @setchapternewpage off | 5 @setchapternewpage off |
6 @c %**end of header | 6 @c %**end of header |
7 @finalout | 7 @finalout |
8 @titlepage | 8 @titlepage |
9 @title XEmacs FAQ | 9 @title XEmacs FAQ |
10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2003/02/05 08:18:55 $ | 10 @subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2003/03/26 06:10:47 $ |
11 @sp 1 | 11 @sp 1 |
12 @author Tony Rossini <rossini@@biostat.washington.edu> | 12 @author Tony Rossini <rossini@@biostat.washington.edu> |
13 @author Ben Wing <ben@@xemacs.org> | 13 @author Ben Wing <ben@@xemacs.org> |
14 @author Chuck Thompson <cthomp@@xemacs.org> | 14 @author Chuck Thompson <cthomp@@xemacs.org> |
15 @author Steve Baur <steve@@xemacs.org> | 15 @author Steve Baur <steve@@xemacs.org> |
2827 Search through the @file{NEWS} file for @samp{X Resources}. A fairly | 2827 Search through the @file{NEWS} file for @samp{X Resources}. A fairly |
2828 comprehensive list is given after it. | 2828 comprehensive list is given after it. |
2829 | 2829 |
2830 In addition, an @file{app-defaults} file is supplied, | 2830 In addition, an @file{app-defaults} file is supplied, |
2831 @file{etc/Emacs.ad} listing the defaults. The file | 2831 @file{etc/Emacs.ad} listing the defaults. The file |
2832 @file{etc/sample.Xdefaults} gives a set of defaults that you might | 2832 @file{etc/sample.Xresources} gives a set of defaults that you might |
2833 consider. It is essentially the same as @file{etc/Emacs.ad} but some | 2833 consider. It is essentially the same as @file{etc/Emacs.ad} but some |
2834 entries are slightly altered. Be careful about installing the contents | 2834 entries are slightly altered. Be careful about installing the contents |
2835 of this file into your @file{.Xdefaults} or @file{.Xresources} file if | 2835 of this file into your @file{.Xresources} or @file{.Xresources} file if |
2836 you use GNU Emacs under X11 as well. | 2836 you use GNU Emacs under X11 as well. |
2837 | 2837 |
2838 @node Q3.1.2, Q3.1.3, Q3.1.1, Customization | 2838 @node Q3.1.2, Q3.1.3, Q3.1.1, Customization |
2839 @unnumberedsubsec Q3.1.2: How can I detect a color display? | 2839 @unnumberedsubsec Q3.1.2: How can I detect a color display? |
2840 | 2840 |
2958 @node Q3.2.1, Q3.2.2, Q3.1.8, Customization | 2958 @node Q3.2.1, Q3.2.2, Q3.1.8, Customization |
2959 @unnumberedsec 3.2: Textual Fonts & Colors | 2959 @unnumberedsec 3.2: Textual Fonts & Colors |
2960 @unnumberedsubsec Q3.2.1: How can I set color options from @file{init.el}/@file{.emacs}? | 2960 @unnumberedsubsec Q3.2.1: How can I set color options from @file{init.el}/@file{.emacs}? |
2961 | 2961 |
2962 How can I set the most commonly used color options from my | 2962 How can I set the most commonly used color options from my |
2963 @file{init.el}/@file{.emacs} instead of from my @file{.Xdefaults}? | 2963 @file{init.el}/@file{.emacs} instead of from my @file{.Xresources}? |
2964 | 2964 |
2965 Like this: | 2965 Like this: |
2966 | 2966 |
2967 @lisp | 2967 @lisp |
2968 (set-face-background 'default "bisque") ; frame background | 2968 (set-face-background 'default "bisque") ; frame background |
2992 @unnumberedsubsec Q3.2.2: How do I set the text, menu and modeline fonts? | 2992 @unnumberedsubsec Q3.2.2: How do I set the text, menu and modeline fonts? |
2993 | 2993 |
2994 Note that you should use @samp{Emacs.} and not @samp{Emacs*} when | 2994 Note that you should use @samp{Emacs.} and not @samp{Emacs*} when |
2995 setting face values. | 2995 setting face values. |
2996 | 2996 |
2997 In @file{.Xdefaults}: | 2997 In @file{.Xresources}: |
2998 | 2998 |
2999 @example | 2999 @example |
3000 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* | 3000 Emacs.default.attributeFont: -*-*-medium-r-*-*-*-120-*-*-m-*-*-* |
3001 Emacs*menubar*font: fixed | 3001 Emacs*menubar*font: fixed |
3002 Emacs.modeline.attributeFont: fixed | 3002 Emacs.modeline.attributeFont: fixed |
3003 @end example | 3003 @end example |
3004 | 3004 |
3005 This is confusing because modeline is a face, and can be found listed | 3005 This is confusing because @samp{default} and @samp{modeline} faces, and |
3006 with all faces in the current mode by using @kbd{M-x set-face-font | 3006 can be found listed with all faces in the current mode by using |
3007 (enter) ?}. It uses the face specification of @code{attributeFont}, | 3007 @kbd{M-x set-face-font (enter) ?}. They use the face-specific resource |
3008 while menubar is a normal X thing that uses the specification | 3008 @samp{attributeFont}, while menubar is a normal X thing that uses the |
3009 @code{font}. With Motif it may be necessary to use @code{fontList} | 3009 specification @samp{font}. With Motif it @emph{may be} necessary to use |
3010 instead of @code{font}. | 3010 @samp{fontList} instead of @samp{font}. With Mule in non-Motif |
3011 configurations it @emph{is} necessary to use @samp{fontSet} instead of | |
3012 @samp{font}. | |
3011 | 3013 |
3012 @node Q3.2.3, Q3.2.4, Q3.2.2, Customization | 3014 @node Q3.2.3, Q3.2.4, Q3.2.2, Customization |
3013 @unnumberedsubsec Q3.2.3: How can I set the colors when highlighting a region? | 3015 @unnumberedsubsec Q3.2.3: How can I set the colors when highlighting a region? |
3014 | 3016 |
3015 How can I set the background/foreground colors when highlighting a | 3017 How can I set the background/foreground colors when highlighting a |
3016 region? | 3018 region? |
3017 | 3019 |
3018 You can change the face @code{zmacs-region} either in your | 3020 You can change the face @code{zmacs-region} either in your |
3019 @file{.Xdefaults}: | 3021 @file{.Xresources}: |
3020 | 3022 |
3021 @example | 3023 @example |
3022 Emacs.zmacs-region.attributeForeground: firebrick | 3024 Emacs.zmacs-region.attributeForeground: firebrick |
3023 Emacs.zmacs-region.attributeBackground: lightseagreen | 3025 Emacs.zmacs-region.attributeBackground: lightseagreen |
3024 @end example | 3026 @end example |
3768 @unnumberedsubsec Q3.8.4: Resources like @code{Emacs*menubar*font} are not working? | 3770 @unnumberedsubsec Q3.8.4: Resources like @code{Emacs*menubar*font} are not working? |
3769 | 3771 |
3770 I am trying to use a resource like @code{Emacs*menubar*font} to set the | 3772 I am trying to use a resource like @code{Emacs*menubar*font} to set the |
3771 font of the menubar but it's not working. | 3773 font of the menubar but it's not working. |
3772 | 3774 |
3773 If you are using the real Motif menubar, this resource is not | 3775 In Motif, the use of @samp{font} resources is obsoleted in order to |
3774 recognized; you have to say: | 3776 support internationalization. If you are using the real Motif menubar, |
3777 this resource is not recognized at all; you have to say: | |
3775 | 3778 |
3776 @example | 3779 @example |
3777 Emacs*menubar*fontList: FONT | 3780 Emacs*menubar*fontList: FONT |
3778 @end example | 3781 @end example |
3779 | 3782 |
3780 If you are using the Lucid menubar, the former resource will be | 3783 If you are using the Lucid menubar, for backward compatibility of user |
3781 recognized only if the latter resource is unset. This means that the | 3784 configurations, the @samp{font} resource is recognized. Since this is |
3782 resource | 3785 not supported by Motif itself, the code is a kludge and the @samp{font} |
3786 resource will be recognized only if the @samp{fontList} resource | |
3787 resource is unset. This means that the resource | |
3783 | 3788 |
3784 @example | 3789 @example |
3785 *fontList: FONT | 3790 *fontList: FONT |
3786 @end example | 3791 @end example |
3787 | 3792 |
3790 @example | 3795 @example |
3791 Emacs*menubar*font: FONT | 3796 Emacs*menubar*font: FONT |
3792 @end example | 3797 @end example |
3793 | 3798 |
3794 even though the latter is more specific. | 3799 even though the latter is more specific. |
3800 | |
3801 With Mule in non-Motif configurations it @emph{is} necessary to use | |
3802 @code{fontSet} @emph{instead of} @code{font}; the backward compatibility | |
3803 kludge was never implemented for non-Motif builds. Example: | |
3804 | |
3805 @example | |
3806 *fontSet: FONT | |
3807 @end example | |
3795 | 3808 |
3796 @node Q3.8.5, Q3.9.1, Q3.8.4, Customization | 3809 @node Q3.8.5, Q3.9.1, Q3.8.4, Customization |
3797 @unnumberedsubsec Q3.8.5: How can I bind a key to a function to toggle the toolbar? | 3810 @unnumberedsubsec Q3.8.5: How can I bind a key to a function to toggle the toolbar? |
3798 | 3811 |
3799 Try something like: | 3812 Try something like: |
3817 @node Q3.9.1, Q3.9.2, Q3.8.5, Customization | 3830 @node Q3.9.1, Q3.9.2, Q3.8.5, Customization |
3818 @unnumberedsec 3.9: Scrollbars | 3831 @unnumberedsec 3.9: Scrollbars |
3819 @unnumberedsubsec Q3.9.1: How can I disable the scrollbar? | 3832 @unnumberedsubsec Q3.9.1: How can I disable the scrollbar? |
3820 | 3833 |
3821 To disable them for all frames, add the following line to | 3834 To disable them for all frames, add the following line to |
3822 your @file{.Xdefaults}: | 3835 your @file{.Xresources}: |
3823 | 3836 |
3824 @example | 3837 @example |
3825 Emacs.scrollBarWidth: 0 | 3838 Emacs.scrollBarWidth: 0 |
3826 @end example | 3839 @end example |
3827 | 3840 |