私の.Xresourcesファイルの中身を以下に示す.ここでは,xterm,kterm,emacs,tgifの設定を記述している.基本的な設定は,フォント,カラー,ウィンドウサイズである.
emacsについては,使用するフォントを.emacs.elで指定するよりも,.Xresourcesに記述するほうが,emacsの起動時間の短縮に繋がる.
tgifについては,使用可能な色を増やす際に,.Xresourcesを使用する.まず,Tgif.MaxColorsで使用する色数を指定する.そして,Tgif.Color[n]で,n番目の色をRGBそれぞれ16進数で指定する.
.Xresourcesを書き直したら,
$ xrdb -merge ~/.Xresources
で設定を更新するのを忘れずに.
!!!!!!!! ~/.Xresources
!!!!!!! vt xterm kterm emacs xdvi tgif
!!!!!!!! xterm
XTerm*metaSendsEscape: true
XTerm*eightBitInput: false
XTerm*selectToClipboard: true
XTerm*geometry: 128x78+250+0
XTerm*curses: on
XTerm*multiScroll: on
XTerm*jumpScroll: on
XTerm*reverseWrap: on
XTerm*foreground: white
XTerm*background: #000000
XTerm*font: -*-lucidatypewriter-medium-r-*-*-12-*-*-*-*-*-*-*
!!!!!!!! kterm
KTerm*kanjiMode: euc
KTerm*visualBell: on
Kterm*Geometry: 80x50
KTerm*ScrollBar: on
KTerm*saveLines: 1000
KTerm*openIm: true
KTerm*background: #000000
KTerm*foreground: #f0f0f0
KTerm*VT100*textColor0: black
KTerm*VT100*textColor1: #FB8383
KTerm*VT100*textColor2: #95FF51
KTerm*VT100*textColor3: #ffff00
KTerm*VT100*textColor4: #6060ff
KTerm*VT100*textColor5: #E763E7
KTerm*VT100*textColor6: #55f0f0
KTerm*VT100*textColor7: #f0f0f0
KTerm*cursorColor: #e0e0e0
!!!!!!!! emacs
!emacs*font: -alias-fixed-medium-r-normal--14-*-*-*-*-*-*-*
!emacs*font: -adobe-courier-medium-r-*--14-*-*-*-*-*-*-*
emacs*font: -*-clean-medium-r-*--14-*-*-*-*-*-*-*
!emacs*font: -*-sazanami mincho-*-*-*-*-*-*-*-*-*-*-*-*
!emacs*menubar*fontSet: -alias-sans-bold-r-normal--20-*-*-*-*-*-*-*
!Emacs*fontSetList: 0,1,2,3,4,5
!Emacs.Fontset:-alias-fixed-medium-r-normal-*-14-*-*-*-*-*-fontset-14
!Emacs.Fontset-0:-alias-fixed-medium-r-normal-*-10-*-*-*-*-*-fontset-10
!Emacs.Fontset-1:-alias-fixed-medium-r-normal-*-12-*-*-*-*-*-fontset-12
!Emacs.Fontset-2:-alias-fixed-medium-r-normal-*-14-*-*-*-*-*-fontset-14
!Emacs.Fontset-3:-alias-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-16
!macs.Fontset-4:-alias-fixed-medium-r-normal-*-20-*-*-*-*-*-fontset-20
!Emacs.Fontset-5:-alias-fixed-medium-r-normal-*-24-*-*-*-*-*-fontset-24
!!!!!!!! xdvi
XDvi.geometry: 900x1100+1000+40
XDvi.shrinkFactor: 6
!!!!!!!! tgif
Tgif*DoubleByteInputMethod: xim
Tgif.InitialFont: Ryumin
Tgif.PercentPrintReduction: 50
Tgif.GridSystem: Metric
Tgif.SquareDoubleByteFonts: \n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\
\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\
\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
-sazanami-mincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\
\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\
-sazanami-gothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V
Tgif.MenuFontSet: a14,k14,r14
Tgif.MsgFontSet: a14,k14,r14
Tgif.BoldMsgFontSet: a14,k14,r14
!------ colors -------
Tgif.MaxColors: 70
Tgif.Color0: black
Tgif.Color1: white
Tgif.Color2: red
Tgif.Color3: green
Tgif.Color4: blue
Tgif.Color5: yellow
Tgif.Color6: pink
Tgif.Color7: cyan
Tgif.Color8: CadetBlue
Tgif.Color9: magenta
Tgif.Color10: #006000
Tgif.Color11: #007000
Tgif.Color12: #008000
Tgif.Color13: #009000
Tgif.Color14: #00A000
Tgif.Color15: #00B000
Tgif.Color16: #00C000
Tgif.Color17: #00D000
Tgif.Color18: #00E000
Tgif.Color19: #00F000
Tgif.Color20: #600000
Tgif.Color21: #700000
Tgif.Color22: #800000
Tgif.Color23: #900000
Tgif.Color24: #A00000
Tgif.Color25: #B00000
Tgif.Color26: #C00000
Tgif.Color27: #D00000
Tgif.Color28: #E00000
Tgif.Color29: #F00000
Tgif.Color30: #000060
Tgif.Color31: #000070
Tgif.Color32: #000080
Tgif.Color33: #000090
Tgif.Color34: #0000A0
Tgif.Color35: #0000B0
Tgif.Color36: #0000C0
Tgif.Color37: #0000D0
Tgif.Color38: #0000E0
Tgif.Color39: #0000F0
Tgif.Color40: #800060
Tgif.Color41: #800070
Tgif.Color42: #800080
Tgif.Color43: #800090
Tgif.Color44: #8000A0
Tgif.Color45: #8000B0
Tgif.Color46: #8000C0
Tgif.Color47: #8000D0
Tgif.Color48: #8000E0
Tgif.Color49: #8000F0
Tgif.Color50: #F06000
Tgif.Color51: #F07000
Tgif.Color52: #F08000
Tgif.Color53: #F09000
Tgif.Color54: #F0A000
Tgif.Color55: #F0B000
Tgif.Color56: #F0C000
Tgif.Color57: #F0D000
Tgif.Color58: #F0E000
Tgif.Color59: #F0F000
Tgif.Color60: #171717
Tgif.Color61: #2e2e2d
Tgif.Color62: #434343
Tgif.Color63: #5c5c5c
Tgif.Color64: #737373
Tgif.Color65: #8a8a8a
Tgif.Color66: #959595
Tgif.Color67: #acacac
Tgif.Color68: #cfcfcf
Tgif.Color69: #e6e6e6