diff options
author | Vincent Ambo <mail@tazj.in> | 2021-11-29T09·46+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-11-29T14·33+0300 |
commit | 2789e013af6dd150dfd01b39e63c83ded8a2081b (patch) | |
tree | 8aa60ca09bd3cb04da0c1e27d2c1d17d579add5a | |
parent | e4c82c2a344a34c5cafd834d223eb7f50df28bb7 (diff) |
feat(tazjin/russian): Function to look up last word in Wiktionary r/3109
For cases where a word raises more questions than are answered by my existing notes, roots, translations and so on. Change-Id: Ic9dd79ba4aef6e3c8e7e8e965195b67f7a0c65f3
-rw-r--r-- | users/tazjin/russian/russian.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/users/tazjin/russian/russian.el b/users/tazjin/russian/russian.el index 5871b180b5c0..c3b2ce04038a 100644 --- a/users/tazjin/russian/russian.el +++ b/users/tazjin/russian/russian.el @@ -117,4 +117,11 @@ (persist-known-russian-words) (message "Marked '%s' as known" word))) +(defun lookup-last-russian-word (in-eww) + "Look up the last Russian word in Wiktionary" + (interactive "P") + (let ((url (concat "https://ru.wiktionary.org/wiki/" (russian-word-word russian--last-word)))) + (if in-eww (eww url) + (browse-url url)))) + (provide 'russian) |