LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 799|回复: 11

Xdefaults怪现象

[复制链接]
发表于 2004-8-18 15:54:33 | 显示全部楼层 |阅读模式
我系统是 rhas3 2.6.6

我的.Xdefaults不能自动控制emacs  但rxvt却可以

详细如下

Emacs.Fontset-0:-sony-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-16,\
chinese-gb2312:-simsun-simsun-medium-r-normal--16-*-*-*-*-*-gb2312*-*,\
mule-unicode-0100-24ff:-*-medium-r-normal--16-*-*-*-*-*-iso10646*-*,\
korean-ksc5601:-*-medium-r-normal-*-16-*-ksc5601*-*,\
chinese-cns11643-5:-simsun-simsun-medium-r-normal--16-*-*-*-*-*-gbk-*,\
chinese-cns11643-6:-simsun-simsun-medium-r-normal--16-*-*-*-*-*-gbk-*,\
chinese-cns11643-7:-simsun-simsun-medium-r-normal--16-*-*-*-*-*-gbk-*,\
sjis:-*-medium-r-normal--16-*-jisx0168*-*
Emacs.Font: fontset-16

rxvt.title:RXVT whith GB18030
rxvt.font:-*-simsun-medium-r-normal-*-14-*-*-*-*-*-iso8859-*
rxvt.mfont:-simsun-simsun-medium-r-normal--14-*-*-*-*-*-gb2312*-*
rxvt.background:black
rxvt.foreground:gray
rxvt.saveLines:1000
rxvt.cursorColorightGreen
rxvt.cursorColor2:red



但我用 xrdb .Xdefaults
之后却发现对emacs的字体设置起做用了.   不知道是怎么回事,请知道的帮助
 楼主| 发表于 2004-8-18 15:56:00 | 显示全部楼层
什么命令能查看一下我现在系统中的设置情况?
 楼主| 发表于 2004-8-19 08:29:08 | 显示全部楼层
来帮助一下呀,高手们.
发表于 2004-8-19 10:30:52 | 显示全部楼层
可以在/etc/rc.d/rc.local添加
xrdb -merge ~/.Xdefaults
 楼主| 发表于 2004-8-19 14:37:22 | 显示全部楼层
这样是可以的,但是我觉得Xdefaults应该是自动执行的呀,为什么我的系统会出现问题?

请指教.
 楼主| 发表于 2004-8-19 14:45:56 | 显示全部楼层
会不会是我的Xdefaults和已经导入的设置有冲突呢

我看了一下我的 /etc/X11/Xre..

如下
[yangfan@yangfan-linux X11]$ cat Xresources
! This is the global resources file that is loaded when
! all users log in, as well as for the login screen

! Fix the Xft dpi to 96; this prevents tiny fonts
! or HUGE fonts depending on the screen size.
Xft.dpi: 96

! hintstyle: medium means that (for Postscript fonts) we
! position the stems for maximum constrast and consistency
! but don't force the stems to integral widths. hintnone,
! hintslight, and hintfull are the other possibilities.
Xft.hintstyle: hintmedium
Xft.hinting: true


会不会有问题?


怎么能看一下我现在X环境中设置的变量?
 楼主| 发表于 2004-8-19 16:54:42 | 显示全部楼层
怪,, 放在 rc.local里面不管用????


非要我手动 xrdb吗??
发表于 2004-8-19 17:00:35 | 显示全部楼层
是放在 ~/.xinitrc里面吧
 楼主| 发表于 2004-8-19 22:06:39 | 显示全部楼层
我想知道为什么这个文件没有自动起做用?
 楼主| 发表于 2004-8-20 09:31:57 | 显示全部楼层
我用xfce4 通过 修改/etc/xfce4/xinitrc 可以成功的.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表