tvl-depot/users/tazjin/russian/helpers.el
Vincent Ambo ec66801094 refactor(tazjin/russian): Open wiktionary in eww instead
Change-Id: I4e00168328e1129f43f4e2e4016ad0543607a73f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3638
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
2021-09-26 10:51:43 +00:00

7 lines
282 B
EmacsLisp

;; 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")))
(eww (concat "https://ru.wiktionary.org/wiki/"
(thing-at-point 'word)))))