Emacs Lisp: duden-lookup opens up https://www.duden.de German dictionary to lookup definitions

Emacs Lisp: duden-lookup opens up https://www.duden.de German dictionary to lookup definitions

This example demonstrates how easy it is to advise your GNU Emacs to query the word on any website. In this case it is https://www.duden.de/ German dictionary. To find a definition of a German word in German language, place your cursor on the word and run M-x duden-lookup. Adapt the function for your needs to open up any other website in similar fashion straight from Emacs.

Dictionaries may be connected in various ways to GNU Emacs so that spelling, translations and dictionary lookups may take place in fastest fashion possible.

(defun duden-lookup ()
  "Looks at word at the point and opens it in browser searching for word on the website https://www.duden.de/ - German Dictionary"
  (interactive)
  (let* ((thing (thing-at-point 'word 'no-properties))
     (query (if thing thing (read-from-minibuffer "Word: ")))
     (query (replace-regexp-in-string " " "_" query))
     (lookup (format "https://www.duden.de/suchen/dudenonline/%s" query)))
    (browse-url lookup)))

Use the idea yourself an adapt it to your own online or offline dictionary. Packages to access local Wordnet dictionary or local and remove dictionary servers already exist. Translation services already exists both in ELPA and MELPA repositories for GNU Emacs packages.

Leave Your Comment or Contact GNU.Support

Contact GNU.Support now. There is a simple rule at GNU.Support: if we can help you, we do, whenever and wherever necessary, and it's the way we've been doing business since 2002, and the only way we know


Full name:


E-mail:


Message: