12 lines
305 B
EmacsLisp
12 lines
305 B
EmacsLisp
|
|
(defun dict-config ()
|
||
|
|
(setq url-automatic-caching t)
|
||
|
|
(global-set-key (kbd "C-c y") 'youdao-dictionary-search-at-point)
|
||
|
|
(setq youdao-dictionary-use-chinese-word-segment t))
|
||
|
|
|
||
|
|
(register-mypkg
|
||
|
|
(list :name "dict"
|
||
|
|
:enabled t
|
||
|
|
:packages '(youdao-dictionary)
|
||
|
|
:config #'dict-config))
|
||
|
|
|