LinuxSir.cn,穿越时空的Linuxsir!

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

哈哈!刚刚升级了gnome,Emacs可以用输入法了!

[复制链接]
发表于 2006-1-15 11:22:22 | 显示全部楼层 |阅读模式
刚刚升级了gnome,发现Emacs可以调出输入法了!可以回到Gnome了!太好了!
发表于 2006-1-15 13:21:54 | 显示全部楼层
你装的是gnome还是gnome-core???
Emacs是哪个版本的?
我用的是Emacs22 (emacs-snapshot)

好像还是跟fcitx有冲突
我是用debian sid的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-15 16:18:46 | 显示全部楼层
我装的gnome-core,emacs-snapshot,以前都不能使用fcitx的,一直用xfce4。今天dist-upgrade了一下,发现emacs和gnome都升级了,于是试了一下,发现突然能用输入法了!呵呵!
我的gnome现在是2.12.2( 2006-1-8)Debian sid里面的。
回复 支持 反对

使用道具 举报

发表于 2006-1-16 00:49:32 | 显示全部楼层
我的系统跟你的一模一样
怎么还是不行啊?
你的配置文件能帖出来看看吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 09:45:19 | 显示全部楼层
Post by linuxcpp
我的系统跟你的一模一样
怎么还是不行啊?
你的配置文件能帖出来看看吗?

  1. ~$ cat .Xresources
  2. Emacs.Font: fontset-chinese
  3. Emacs.Fontset-0:-*-fixed-medium-r-*-*-14-*-*-*-c-*-fontset-chinese,\
  4. ascii:-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1,\
  5. chinese-gb2312:-*-simsun-medium-r-*-*-13-*-*-*-p-*-gb2312.1980-*

  6. Xft.dpi:96

  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. !! RXVT setting
  9. Rxvt.background:black
  10. Rxvt.foreground:white
  11. Rxvt.colorBD:yellow
  12. Rxvt.colorUL:green
  13. !!Rxvt.multichar_encoding:gb2312
  14. Rxvt.scrollBar:True
  15. Rxvt.scrollBar_right:True
  16. Rxvt.scrollBar_floating: False
  17. Rxvt.scrollstyle:next
  18. Rxvt.saveLines:3000
  19. Rxvt.color12:DodgerBlue
  20. !!Rxvt.font:-wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
  21. Rxvt.font:7x14,xft:AR PL New Sung
  22. !Rxvt.font:-xos4-terminus-medium-r-normal--16-160-72-72-c-80-iso10646-1
  23. !!URxvt.font:-wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
  24. !URxvt.font:7x14,xft:AR PL New Sung
  25. URxvt.font:-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
  26. !!Rxvt.mfont:-wqy-yhunifont-medium-r-normal--16-160-75-75-c-80-iso10646-1
  27. !Rxvt.menu:/etc/X11/rxvt.menu
  28. Rxvt.preeditType:Root
  29. !!Rxvt.geometry:120x40+10+20
复制代码

其中“-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1”是我自己找的一种英文字体,应该没有什么关系。

  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom.
  3.   ;; If you edit it by hand, you could mess it up, so be careful.
  4.   ;; Your init file should contain only one such instance.
  5.   ;; If there is more than one, they won't work right.
  6. '(asm-comment-char 35)
  7. '(case-fold-search t)
  8. '(current-language-environment "UTF-8")
  9. '(default-input-method "rfc1345")
  10. '(ecb-options-version "2.32")
  11. '(global-font-lock-mode t nil (font-lock))
  12. '(load-home-init-file t t)
  13. '(transient-mark-mode t))
  14. (custom-set-faces
  15.   ;; custom-set-faces was added by Custom.
  16.   ;; If you edit it by hand, you could mess it up, so be careful.
  17.   ;; Your init file should contain only one such instance.
  18.   ;; If there is more than one, they won't work right.
  19. )

  20. ;; 设置c文件的缩进方案
  21. ;(setq c-default-style
  22. ;      '((c-mode . "k&r") (c++-mode . "stroustrup") (other . "gnu")))

  23. ;; no startup screen
  24. ;; 关闭启动画面
  25. (setq inhibit-startup-message t)

  26. ;; 关闭工具栏和菜单栏显示
  27. (tool-bar-mode -1)
  28. (menu-bar-mode -1)

  29. ;; set font message
  30. ;; 设置窗口颜色字体等。
  31. ;; if the window size and position is not correct as
  32. ;; the configure file, please check .Xresources file
  33. ;; in your home directory.
  34. ;(setq default-frame-alist
  35. ;'(
  36. ;(top . 0)
  37. ;(left . 0)
  38. ;(height . 50)
  39. ;(width . 110)
  40. ;(cursor-type . bar)
  41. ;(cursor-color . "black")
  42. ;(font . "9x15")
  43. ;(background-color . "white")
  44. ;))

  45. ;; 开启鼠标滚轮
  46. ;(mouse-wheel-mode t)

  47. ;; 对配置文件进行加亮
  48. (require 'generic)
  49. (require 'generic-x)

  50. ;; 使Ctrl-h删除前面的字符
  51. (global-set-key "\C-h" 'delete-backward-char)
  52. ;(define-key global-map "\C-h" 'backward-delete-char)
  53. ;; 确认Ctrl-h也在搜索中可用(Emacs-snapshot好像没有这个选项了)
  54. ;(setq search-delete-char (string-to-char "\C-h"))
  55. ;; 把帮助绑定到Ctrl-_
  56. (define-key global-map "\C-_" 'help-command)
  57. (setq help-char (string-to-char "\C-_"))
  58. ;; 使M-h可以删除前面的单词
  59. (define-key global-map "\M-h" 'backward-kill-word)

  60. ;; 如果在c-mod,每次尝试删除尽可能多的空白
  61. (add-hook 'c-mode-hook (lambda () (c-toggle-hungry-state 1)))

  62. ;; Make all "yes or no" prompts show "y or n" instead
  63. (fset 'yes-or-no-p 'y-or-n-p)

  64. ;; 我的el库
  65. (setq load-path (append load-path (list "~/emacs/extension/")))

  66. ;; 加载颜色主题库
  67. (require 'color-theme)
  68. (color-theme-snowish)

  69. ;; load my new version of speedbar
  70. (add-to-list 'load-path "~/emacs/packages/speedbar-0.14beta4")

  71. ;; 调用M-x ecb来启动ecb,免得平时启动emacs的时候速度太慢。
  72. (defun ecb ()
  73.   "load ecb packages and active it
  74. added by pluskid to make his emacs start faster not loading
  75. ecb packages on startup."
  76.   (interactive "")
  77. ;  (add-to-list 'load-path "~/emacs/packages/speedbar-0.14beta4")
  78.   (add-to-list 'load-path "~/emacs/packages/eieio-0.17")
  79.   (add-to-list 'load-path "~/emacs/packages/semantic-1.4.4")
  80.   (setq semantic-load-turn-everything-on t)
  81.   (require 'semantic-load)
  82.   (add-to-list 'load-path "~/emacs/packages/COGRE-0.2")
  83.   (require 'cogre)
  84.   (add-to-list 'load-path "~/emacs/packages/ecb-2.32")
  85.   (require 'ecb)
  86.   (ecb-activate)
  87.   (fulscr)
  88. )

  89. ;; load speedbar and resize window to a proper size
  90. (defun spdbar ()
  91.   "load speedbar and resize window to a proper size"
  92.   (interactive "")
  93.   (let ((oldframe (selected-frame)))
  94.   (modify-frame-parameters nil
  95.                            '((top . 0)
  96.                              (left . 0)
  97.                              (height . 48)
  98.                              (width . 97)))
  99.       (speedbar)
  100.       (select-frame-set-input-focus oldframe))
  101.   )
  102. ... 一下一些无关的函数省略
复制代码
  1. ~$ locale
  2. LANG=zh_CN
  3. LC_CTYPE="zh_CN.UTF-8"
  4. LC_NUMERIC="zh_CN.UTF-8"
  5. LC_TIME="zh_CN.UTF-8"
  6. LC_COLLATE="zh_CN.UTF-8"
  7. LC_MONETARY="zh_CN.UTF-8"
  8. LC_MESSAGES="zh_CN.UTF-8"
  9. LC_PAPER="zh_CN.UTF-8"
  10. LC_NAME="zh_CN.UTF-8"
  11. LC_ADDRESS="zh_CN.UTF-8"
  12. LC_TELEPHONE="zh_CN.UTF-8"
  13. LC_MEASUREMENT="zh_CN.UTF-8"
  14. LC_IDENTIFICATION="zh_CN.UTF-8"
  15. LC_ALL=zh_CN.UTF-8
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 09:48:17 | 显示全部楼层
就像这样(我也不知道怎么回事):

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2006-1-16 11:45:16 | 显示全部楼层
http://www.linuxsir.cn/bbs/showt ... 3%E5%85%A5%E6%B3%95


这个问题估计是跟这篇帖子里的兄弟的方法一样解决的
如果不改字体设置还是不行
还好
终于有办法解决了
感谢你的config文件
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 13:39:58 | 显示全部楼层
不过奇怪的是我以前几乎同样的设置,但是按照上面那个帖子的链接设置都仍然无法调出输入法。
回复 支持 反对

使用道具 举报

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

本版积分规则

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