about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/russian/russian.el7
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)