[chinese] Add fcitx5 support
This commit is contained in:
parent
247830ab40
commit
58ce74d80d
|
@ -1223,6 +1223,7 @@ Other:
|
||||||
- Improvements:
|
- Improvements:
|
||||||
- Added variable =chinese-fcitx-use-dbus=, and fixed the misinformation about
|
- Added variable =chinese-fcitx-use-dbus=, and fixed the misinformation about
|
||||||
dbus in README.org (thanks to AmaiKinono)
|
dbus in README.org (thanks to AmaiKinono)
|
||||||
|
- Added =fcitx5= support (thanks to wgjak47)
|
||||||
- Fixes:
|
- Fixes:
|
||||||
- Make =fcitx.el= work by default (thanks to AmaiKinono)
|
- Make =fcitx.el= work by default (thanks to AmaiKinono)
|
||||||
**** Chrome
|
**** Chrome
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
- [[#configure-the-chinese-pyim-input-method-配置中文拼音输入法][Configure the =Chinese-pyim= Input Method (配置中文拼音输入法)]]
|
- [[#configure-the-chinese-pyim-input-method-配置中文拼音输入法][Configure the =Chinese-pyim= Input Method (配置中文拼音输入法)]]
|
||||||
- [[#configure-chinese-conv-配置简繁转换][Configure =chinese-conv= (配置简繁转换)]]
|
- [[#configure-chinese-conv-配置简繁转换][Configure =chinese-conv= (配置简繁转换)]]
|
||||||
- [[#enable-fcitx][Enable fcitx]]
|
- [[#enable-fcitx][Enable fcitx]]
|
||||||
|
- [[#enable-fcitx5][Enable Fcitx5]]
|
||||||
- [[#requirement][Requirement]]
|
- [[#requirement][Requirement]]
|
||||||
- [[#linux][Linux]]
|
- [[#linux][Linux]]
|
||||||
- [[#macos][macOS]]
|
- [[#macos][macOS]]
|
||||||
|
@ -93,6 +94,16 @@ to replace the current selection in-place.
|
||||||
If you don't need to type Chinese in minibuffer, you can temporarily disable fcitx in the minibuffer
|
If you don't need to type Chinese in minibuffer, you can temporarily disable fcitx in the minibuffer
|
||||||
with the following configuration.
|
with the following configuration.
|
||||||
|
|
||||||
|
**** Enable Fcitx5
|
||||||
|
If you want to use fcitx5 instead of fcitx4, enable the variable
|
||||||
|
=chinese-use-fcitx5=:
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(setq-default dotspacemacs-configuration-layers
|
||||||
|
'((chinese :variables
|
||||||
|
chinese-use-fcitx5 t
|
||||||
|
chinese-enable-fcitx t)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(fcitx-aggressive-setup)
|
(fcitx-aggressive-setup)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
(defvar chinese-enable-fcitx nil
|
(defvar chinese-enable-fcitx nil
|
||||||
"Enable fcitx to help writing Chinese in Evil mode.")
|
"Enable fcitx to help writing Chinese in Evil mode.")
|
||||||
|
|
||||||
|
(defvar chinese-use-fcitx5 nil
|
||||||
|
"Enable fcitx5 instead fcitx4.")
|
||||||
|
|
||||||
(defvar chinese-fcitx-use-dbus nil
|
(defvar chinese-fcitx-use-dbus nil
|
||||||
"Use dbus interface for fcitx.el.")
|
"Use dbus interface for fcitx.el.")
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq fcitx-active-evil-states '(insert emacs hybrid))
|
(setq fcitx-active-evil-states '(insert emacs hybrid))
|
||||||
|
(when chinese-use-fcitx5
|
||||||
|
(setq fcitx-remote-command "fcitx5-remote"))
|
||||||
(fcitx-default-setup)
|
(fcitx-default-setup)
|
||||||
(fcitx-prefix-keys-add "M-m" "C-M-m")
|
(fcitx-prefix-keys-add "M-m" "C-M-m")
|
||||||
(when chinese-fcitx-use-dbus
|
(when chinese-fcitx-use-dbus
|
||||||
|
|
Loading…
Reference in a new issue