From 2789e013af6dd150dfd01b39e63c83ded8a2081b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 29 Nov 2021 12:46:14 +0300 Subject: feat(tazjin/russian): Function to look up last word in Wiktionary For cases where a word raises more questions than are answered by my existing notes, roots, translations and so on. Change-Id: Ic9dd79ba4aef6e3c8e7e8e965195b67f7a0c65f3 --- users/tazjin/russian/russian.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/tazjin/russian/russian.el b/users/tazjin/russian/russian.el index 5871b180b5..c3b2ce0403 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) -- cgit 1.4.1