diff options
author | Guangxiong Lin <[email protected]> | 2022-02-22 00:21:42 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-02-22 00:21:42 +0800 |
commit | c53c9bba77c4c81d25b3e297e6df9304ff5fe3d7 (patch) | |
tree | 8582da941b81de29095b09c6278186a1ff463e13 | |
parent | 32524fa5f17b94f20c9fec5d04ee66eb3cef0e24 (diff) | |
download | dotfiles-c53c9bba77c4c81d25b3e297e6df9304ff5fe3d7.tar.gz dotfiles-c53c9bba77c4c81d25b3e297e6df9304ff5fe3d7.tar.bz2 dotfiles-c53c9bba77c4c81d25b3e297e6df9304ff5fe3d7.zip |
Add emacs pyim
-rw-r--r-- | .emacs.d/.gitignore | 1 | ||||
-rw-r--r-- | .emacs.d/init.el | 1 | ||||
-rw-r--r-- | .emacs.d/lisp/init-pyim.el | 15 |
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) |