about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-09-23T16·43+0300
committerVincent Ambo <mail@tazj.in>2021-09-23T16·43+0300
commitd5f459fa6e8a001ce75c2863b9999e4d297a274a (patch)
treeda103455cb28041cac3ebd1a017841a4cbdc433a /users
parentef75d83c96724682bf5ce6c568ce207a618df851 (diff)
feat(tazjin/russian): Helper function for Викисловарь lookups r/2908
Change-Id: Id3325fcb1c29cbd4d3f9f7933f50ce2c2f25731f
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/russian/helpers.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/tazjin/russian/helpers.el b/users/tazjin/russian/helpers.el
new file mode 100644
index 000000000000..84f69c0a62af
--- /dev/null
+++ b/users/tazjin/russian/helpers.el
@@ -0,0 +1,7 @@
+;; Helper functions for creating the other files.
+
+(defun wiktionary-lookup-at-point (ask-lang)
+  (interactive "P")
+  (let ((language (if ask-lang (read-string "Language code? ") "ru")))
+    (browse-url (concat "https://ru.wiktionary.org/wiki/"
+                        (thing-at-point 'word)))))