Migrate dictionary to online service

This commit is contained in:
Howard Abrams 2022-09-26 17:22:20 -07:00
parent ecc9c1ee8f
commit 199468339f

View file

@ -726,16 +726,19 @@ After my enamoring of Noah Websters 1913 dictionary (originally due to readin
If you want to always see Websters results by default, go to the Dictionary apps preferences and drag Websters to the top of the list. If you want to always see Websters results by default, go to the Dictionary apps preferences and drag Websters to the top of the list.
Now that this illuminating dictionary is part of my MacOS =Dictionary.app=, I decided to use the [[https://github.com/xuchunyang/osx-dictionary.el][osx-dictionary]] package instead of the =define-word=: Now that Im mostly on version 28 and above of Emacs, we can take advantage of [[help:dictionary-search][dictionary-search]] for looking up dictionaries online, and out of all the word definitions packages for Emacs, this looks the best and is easiest to read:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (equal system-type 'darwin) (setq dictionary-server "dict.org")
(use-package osx-dictionary
:bind ("s-d" . osx-dictionary-search-word-at-point) (ha-local-leader :keymaps 'text-mode-map
:config "s d" '("define word" . dictionary-search))
(ha-local-leader :keymaps 'text-mode-map
"s d" '("define this" . osx-dictionary-search-word-at-point)
"s D" '("define word" . osx-dictionary-search-input))))
#+end_src #+end_src
Once in the dictionary buffer, acquiesce these keybindings:
- ~q~ close the dictionary buffer
- ~s~ ask for a new word to search
- ~d~ search the word at point
Also note that the dictionary has links to other pages, so ~n~ and ~TAB~ jumps to the next link and ~RET~ opens that link.
** Grammar and Prose Linting ** Grammar and Prose Linting
Flagging cliches, weak phrasing and other poor grammar choices. Flagging cliches, weak phrasing and other poor grammar choices.
*** Writegood *** Writegood