aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el2
-rw-r--r--.emacs.d/lisp/init-input-method.el9
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)