diff options
author | Guangxiong Lin <[email protected]> | 2022-03-05 00:16:22 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-05 00:16:22 +0800 |
commit | 99d1220b6fafe67cae45beee5a957f235f6fe1c4 (patch) | |
tree | eef0fc879bae752c59d6cd3493b072eef991b078 | |
parent | a191cf9740e7c1312ab3d41190ce0dcde07c0cb6 (diff) | |
download | dotfiles-99d1220b6fafe67cae45beee5a957f235f6fe1c4.tar.gz dotfiles-99d1220b6fafe67cae45beee5a957f235f6fe1c4.tar.bz2 dotfiles-99d1220b6fafe67cae45beee5a957f235f6fe1c4.zip |
Add config of fcitx5 (emacs)
-rw-r--r-- | .emacs.d/init.el | 2 | ||||
-rw-r--r-- | .emacs.d/lisp/init-input-method.el | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6431006..f6ef44c 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -11,6 +11,7 @@ (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) (defconst *is-a-mac* (eq system-type 'darwin)) +(defconst *is-a-linux* (eq system-type 'gnu/linux)) (require 'init-package) (require 'init-evil) @@ -19,6 +20,7 @@ (require 'init-filetype) (require 'init-pyim) (require 'init-deft) +(require 'init-input-method) (require 'init-misc) (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) diff --git a/.emacs.d/lisp/init-input-method.el b/.emacs.d/lisp/init-input-method.el new file mode 100644 index 0000000..38b09bd --- /dev/null +++ b/.emacs.d/lisp/init-input-method.el @@ -0,0 +1,9 @@ +(when *is-a-linux* + (use-package fcitx + :ensure t + :init + (setq fcitx-remote-command "fcitx5-remote") + :config + (fcitx-aggressive-setup))) + +(provide 'init-input-method) |