From d5f459fa6e8a001ce75c2863b9999e4d297a274a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 23 Sep 2021 19:43:28 +0300 Subject: feat(tazjin/russian): Helper function for Викисловарь lookups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id3325fcb1c29cbd4d3f9f7933f50ce2c2f25731f --- users/tazjin/russian/helpers.el | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 users/tazjin/russian/helpers.el diff --git a/users/tazjin/russian/helpers.el b/users/tazjin/russian/helpers.el new file mode 100644 index 0000000000..84f69c0a62 --- /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))))) -- cgit 1.4.1