From 06c864bc322bd7bfb6dc985066b0e676119b6133 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 21 Apr 2022 23:13:41 +0100 Subject: wordreference --- init.org | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index 98853dc..72e7de7 100644 --- a/init.org +++ b/init.org @@ -1387,7 +1387,7 @@ (add-hook 'text-mode-hook 'turn-on-auto-fill) #+end_src *** Dictionaries - #+BEGIN_SRC emacs-lisp + #+begin_src emacs-lisp (defun jao-word-definition-lookup () "Look up the word under cursor in a browser." (interactive) @@ -1408,13 +1408,18 @@ dictionary-popup-matching-words dictionary-tooltip-mode global-dictionary-tooltip-mode) - :bind (("C-c d" . dictionary-search) - ("C-c D" . jao-word-definition-lookup))) + :bind (("C-c d" . dictionary-search))) (setq ispell-personal-dictionary (expand-file-name "~/.emacs.d/ispell.dict")) - #+END_SRC + (use-package wordreference + :ensure t + :init (setq wordreference-target-lang "es" + wordreference-source-lang "en") + :bind (("C-c D" . wordreference-search))) + + #+end_src *** Markdown #+BEGIN_SRC emacs-lisp (use-package markdown-mode -- cgit v1.2.3