youdao-dictionary
is a simple Youdao Dictionary (有道词典) interface for Emacs.
Notes: chinese-word-at-point.el requires an external tool to work correctly, for more info, see chinese-word-at-point.el#prerequisite.
Install youdao-dictionary
from MELPA with: M-x package-install RET youdao-dictionary
youdao-dictionary-search-at-point
- Search word at point and display result with buffer
youdao-dictionary-search-at-point+
- Search word at point and display result with popup-tip
youdao-dictionary-search-from-input
- Search word from input and display result with buffer
youdao-dictionary-search-and-replace
- Search word at point and display result with popup-menu, replace word with selected translation.
;; Enable Cache
(setq url-automatic-caching t)
;; Key bindings
(global-set-key (kbd "C-c y") 'youdao-dictionary-search-at-point)
;; Integrate with popwin-el (https://github.com/m2ym/popwin-el)
(push "*Youdao Dictionary*" popwin:special-display-config)
;; Set file path for saving search history
(setq youdao-dictionary-search-history-file "~/.emacs.d/.youdao")
- ydcv
- YouDao Console Version