在 Linux 完全下不工作
配置代码如下:
(when (eq system-type 'gnu/linux)
;; (fcitx-prefix-keys-add "SPC")
;; (setq fcitx-use-dbus 't)
(setq fcitx-active-evil-states '(insert emacs hybrid))
(fcitx-aggressive-setup)
)
在 eshell 和 terminal 下都试过了 fcitx-remote -c 和 -o 都能正常切换输入法,问题应该不在 fcitx-remote 上。
同样地配置把 gnu/linux 换成 darwin 在 Mac 下是好用的,在 Linux 下写不写 when 语句都无效。 dbus 行注释与否都无效。
具体表现为进入 insert-mode ,切换中文输入法,按 esc ,还是中文输入法。
以下是系统信息:
- 输入法: fcitx-rime
- fcitx version: 4.2.9.6
- OS: gnu/linux (x86_64-pc-linux-gnu)
- Shell: /bin/bash
- Emacs: 26.2 (Apr 13, 2019)
- Doom: 2.0.9 (HEAD -> develop, origin/develop, origin/HEAD f754d4ff 2019-07-23 18:23:17 +0200)
- Graphic display: t (daemon: nil)
- System features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2
- Details:
env bootstrapper: envvar-file elc count: 0 uname -a: Linux 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 modules: (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor evil file-templates fold multiple-cursors rotate-text snippets :emacs dired electric vc :tools eval flycheck (lookup +docsets) magit :lang data emacs-lisp markdown (org +dragndrop +ipython +pandoc +present) python sh web :config default) packages: (company-tabnine ox-gfm youdao-dictionary fcitx winum company-web) exec-path: (/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games ~/.emacs.d/bin ~/.emacs.d/bin /usr/lib/x86_64-linux-gnu/emacs/26.2/x86_64-linux-gnu/)
尝试直接运行 fcitx--activate-proc (激活 fcitx), fcitx--deactivate-proc (关闭 fcitx) 和 fcitx--active-p-proc (查看当前 fcitx 的激活状况),看下是否都能正常工作。
我是了下运行这两个函数内部的命令 (call-progress "fcitx-remote" nil nil nil "-o") 是没有问题的,可以正常切换输入法。
不过这两个函数没有 (interactive) 应该无法直接 M-x,如何运行?
建议用 edebug 单步调试来看是哪一个地方出的问题。
我是了下运行这两个函数内部的命令
(call-progress "fcitx-remote" nil nil nil "-o")是没有问题的,可以正常切换输入法。不过这两个函数没有
(interactive)应该无法直接 M-x,如何运行?
@ArchCST 我之前也有這個問題,後來嘗試了是因爲我 fcitx 中只保留了 rime 一個輸入法。我加回英文鍵盤作爲首選項之後就可以了。你可以試試?