LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: dajun

emacs-cvs & scim

[复制链接]
 楼主| 发表于 2008-4-25 22:04:12 | 显示全部楼层
after remove /etc/gtk-2.0/gtk.immodules scim not auto start any more,
but if I set /etc/X11/xinit/xinitrc.d/xxinput with scim,
the scim still can not work with emacs,
and my fcitx can work with emacs,  but can not work with gnome-terminal !!!

export LC_CTYPE="zh_CN.UTF-8"
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx &



god !!!!!!!!!!!!!!!!!! where are you ????
回复 支持 反对

使用道具 举报

发表于 2008-4-25 22:18:36 | 显示全部楼层
emacs 的中文输入可以考虑下一个插件 eim, 比较方便。

目前我是将 emacs 调用外部输入法禁用而直接使用 eim 这个输入法。
emacswiki 上的说明,以及 作者的主页:
http://www.emacswiki.org/cgi-bin/wiki/EimForChinese
http://learn.tsinghua.edu.cn:8080/2005211356/emacs/Eim.html
回复 支持 反对

使用道具 举报

发表于 2008-4-26 01:00:28 | 显示全部楼层
Post by dajun;1842566
after remove /etc/gtk-2.0/gtk.immodules scim not auto start any more,
but if I set /etc/X11/xinit/xinitrc.d/xxinput with scim,
the scim still can not work with emacs,
and my fcitx can work with emacs,  but can not work with gnome-terminal !!!

export LC_CTYPE="zh_CN.UTF-8"
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx &



god !!!!!!!!!!!!!!!!!! where are you ????


汗,你试过我上面给出的配置了吗?没有的话,请詳細看看,不行也说一声。
我可是为了试试scim的支持第一次装上emacs-cvs,我是用vim的。
那是我在~/.xprofile中的设置,我自己不行是不会拿出来的。

to wsw:
emacs-23的中文配置,我觉得已经简单到我可以接受的程度了,
网上是不少设置说明是针对22的,好像不适用于23。
你可以试试:
在 ~/.Xresources中设置:
  1. Emacs.FontBackend: xft
  2. Xft.dpi: 96
复制代码

我的~/.Xresources中只有这个设置
在~/.emacs中设置:
  1. (set-default-font "DejaVu Sans Mono:pixelsize=22")
  2. (set-fontset-font "fontset-default" 'unicode' ("Microsoft YaHei" . "unicode-bmp"))
复制代码

我的~/.emacs中现在只有两行。
中文字体和英文字体就OK了。
回复 支持 反对

使用道具 举报

发表于 2008-4-26 03:07:42 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2008-4-26 06:44:10 | 显示全部楼层
我的老出下面这个错:
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...
Loading /usr/share/emacs/site-lisp/txt2tags/txt2tags-mode.el (source)...done
Loading gtk-doc...done
Loading /usr/share/emacs/site-lisp/site-gentoo.el (source)...done
set-default-font: Fontset `-unknown-文鼎PL新宋-regular-roman-normal--19-*-*-*-*-*-fontset-startup' does not exist
Fontset `-unknown-文鼎PL新宋-regular-roman-normal--19-*-*-*-*-*-fontset-startup' does not exist

$ cat .emacs
(prefer-coding-system 'utf-8)
(set-default-font "Consolas-16")
(set-fontset-font (frame-parameter nil 'font)
   'han '("文鼎PL新宋" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
   'symbol '("文鼎PL新宋" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
   'cjk-misc '("文鼎PL新宋" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
   'bopomofo '("文鼎PL新宋" . "unicode-bmp"))
(load "/usr/share/emacs/site-lisp/site-gentoo")
(global-set-key [?\S- ] 'set-mark-command)
(global-font-lock-mode t)

把这句注释掉就不出错了,但字小。
(set-default-font "Consolas-16")
回复 支持 反对

使用道具 举报

发表于 2008-4-26 10:19:22 | 显示全部楼层
你用fc-list | grep PL 看到的相应的字体的英文名把 其中文名替换掉看看。
回复 支持 反对

使用道具 举报

发表于 2008-4-26 10:28:11 | 显示全部楼层
中英文都有的,原来就是用的英文名也出错,而且错误和上面的一模一样。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-26 11:56:11 | 显示全部楼层
Post by acevery;1842639
汗,你试过我上面给出的配置了吗?没有的话,请詳細看看,不行也说一声。
我可是为了试试scim的支持第一次装上emacs-cvs,我是用vim的。
那是我在~/.xprofile中的设置,我自己不行是不会拿出来的。



呵呵,让你伤心了:sorry

放到了.xprofile里的确可以了
最后我发现是@im=scim的scim要大写
不放到.xprofile也可以
我现在的是这样的
export XMODIFIERS="@im=SCIM"
export XIM="scim"
export XINPUT="xim"
export XIM_PROGRAM="scim -d"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="xim"
scim -d

最后这个scim -d不加的话scim也是可以起来,但是无法用在emacs里
加了以后就又多了一个scim-launcher,可以用了,多就多吧  呵呵


谢谢你了
也谢谢各位了!!!
回复 支持 反对

使用道具 举报

发表于 2008-4-26 13:39:50 | 显示全部楼层
试了就不伤心了
解决了就好。
加了scim -d是为了启动一个支持X前端的后台程序,就是多一个-f X 的scim-launcher,这样非GTK的X程序才能用scim输入。
回复 支持 反对

使用道具 举报

发表于 2008-4-26 13:44:01 | 显示全部楼层
Post by gorf;1842713
中英文都有的,原来就是用的英文名也出错,而且错误和上面的一模一样。


同情一下,这个帮不上了。试试zhllg给出的链接看看。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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