aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/.gitignore1
-rw-r--r--.emacs.d/init.el1
-rw-r--r--.emacs.d/lisp/init-pyim.el15
3 files changed, 17 insertions, 0 deletions
diff --git a/.emacs.d/.gitignore b/.emacs.d/.gitignore
index dd01222..8c1df1d 100644
--- a/.emacs.d/.gitignore
+++ b/.emacs.d/.gitignore
@@ -8,3 +8,4 @@ bookmarks
network-security.data
org-clock-save.el
transient
+pyim
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index bc6f720..58cbf73 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -17,6 +17,7 @@
(require 'init-org)
(require 'init-lang)
(require 'init-filetype)
+(require 'init-pyim)
(require 'init-misc)
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
diff --git a/.emacs.d/lisp/init-pyim.el b/.emacs.d/lisp/init-pyim.el
new file mode 100644
index 0000000..e4b3a5c
--- /dev/null
+++ b/.emacs.d/lisp/init-pyim.el
@@ -0,0 +1,15 @@
+(use-package pyim
+ :ensure t
+ :config
+ (pyim-default-scheme 'quanpin)
+ (pyim-isearch-mode 1)
+ (setq pyim-page-length 10)
+ (setq default-input-method "pyim"))
+
+(use-package pyim-basedict
+ :ensure t
+ :after (pyim)
+ :config
+ (pyim-basedict-enable))
+
+(provide 'init-pyim)