summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-04-21 23:13:41 +0100
committerjao <jao@gnu.org>2022-04-21 23:13:41 +0100
commit06c864bc322bd7bfb6dc985066b0e676119b6133 (patch)
treeffb72d04e9855f9c2903b55f913546a531decd60
parent27df72073e2955db9c8698402b56fd1e7c9e3ab8 (diff)
downloadelibs-06c864bc322bd7bfb6dc985066b0e676119b6133.tar.gz
elibs-06c864bc322bd7bfb6dc985066b0e676119b6133.tar.bz2
wordreference
-rw-r--r--init.org13
1 files 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