diff options
| author | Thomas Ulmer <thomasmulmer02@gmail.com> | 2024-04-27 16:46:22 -0700 |
|---|---|---|
| committer | Thomas Ulmer <thomasmulmer02@gmail.com> | 2024-04-27 16:46:22 -0700 |
| commit | e950b705540c5371ef1d7efd6bce9d8e36d62f3f (patch) | |
| tree | 1bf043689c8b78c188636e9cc75c7ecbd88f1805 /emacs/personal-lisp/general-text.el | |
| parent | e421309a69747803731c15e913d1ff8a37a0cc69 (diff) | |
emacs config cleanup
Diffstat (limited to 'emacs/personal-lisp/general-text.el')
| -rw-r--r-- | emacs/personal-lisp/general-text.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs/personal-lisp/general-text.el b/emacs/personal-lisp/general-text.el new file mode 100644 index 0000000..bea3fc9 --- /dev/null +++ b/emacs/personal-lisp/general-text.el @@ -0,0 +1,23 @@ +;; General stuff for editing all text, but particularly prose + +;; spelling +(require 'spell-fu) +(setq ispell-personal-dictionary "/home/tmu/.aspell.en.pws") +(add-hook 'text-mode-hook (lambda () (spell-fu-mode 1))) + +;; dictionaries +(define-prefix-command 'dict-map) +(global-set-key (kbd "M-l") 'dict-map) +(define-keymap :full nil + :parent nil + :suppress nil + :keymap nil + :name "dict-map" + :prefix 'dict-map + (kbd "w") 'sdcv-search-input + (kbd "c") (lambda () (interactive) + (activate-input-method 'pyim) + (sdcv-search-input (read-from-minibuffer "Chinese Word: " + nil nil nil + nil nil t)) + (activate-input-method nil))) |
