From 99d1220b6fafe67cae45beee5a957f235f6fe1c4 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 5 Mar 2022 00:16:22 +0800 Subject: Add config of fcitx5 (emacs) --- .emacs.d/init.el | 2 ++ .emacs.d/lisp/init-input-method.el | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 .emacs.d/lisp/init-input-method.el 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) -- cgit v1.2.3