新手問幾個RIME的問題

我今天實驗用emacs-rime,安裝了,但是出現奇怪的現象,就是沒有輸入法的後選詞欄,這個後選詞欄竟然跑到mini buffer那里了。。。

我在arch里安裝的fcitx5-rime,請問emacs里的rime和arch下的rime是否會衝突?

使用rime主要是看中他在evil mode里可以自動切換中英文。。。

我是emacs新手,估計問題有點傻,還請原諒。

謝謝。

悬浮的候选词菜单需要另外安装posframe:GitHub - tumashu/posframe: Pop a posframe (just a child-frame) at point, posframe is a **GNU ELPA** package! emacs-rime支持几种不同的菜单样式:GitHub - DogLooksGood/emacs-rime: RIME ㄓ in Emacs

fcitx5-rime 后面也是 librime ,没有冲突。

这是候选的显示方式。

自动的英文在这里

能給你一個你的設置嗎? :rofl: 我抄一個。。。 謝謝

我自己并不用 evil。

https://github.com/DogLooksGood/emacs.d/blob/master/elisp/init-rime.el

謝謝,我根據你的大概弄出來了,可以正常使用了 幾個問題,有個特別奇怪的事,就是我安裝了emacs-rime之後,我linux里的rime沒有啓動,但是卻啓動了,然後沒有後選詞礦,這是。。。

還有,我使用你的中英文自動切換,但是貌似不管用。。。 求教

系统 Rime 的状态应该和 emacs-rime 是没有关系的。

如果说针对 Evil 中英切换的话,你需要的断言大概是这样的。

(setq rime-disable-predicates
      '(rime-predicate-evil-mode-p))
1 个赞

都搞定了,謝謝,我把代碼放上來,也許別人用得到

(require 'rime)

(setq rime-posframe-properties (list :background-color “#333333” :foreground-color “#dcdccc” :font “KKong3-24” :internal-border-width 10))

(setq default-input-method “rime” rime-show-candidate 'posframe) ;; 自動且切換中英文

(setq rime-disable-predicates '(rime-predicate-evil-mode-p rime-predicate-after-alphabet-char-p rime-predicate-prog-in-code-p))

2 个赞