diff options
author | Kenny Ballou <kb@devnulllabs.io> | 2022-10-08 13:29:45 -0600 |
---|---|---|
committer | Kenny Ballou <kb@devnulllabs.io> | 2022-10-08 19:04:19 -0600 |
commit | 871420604686f0b91f7f3950de0c6db57dadf869 (patch) | |
tree | e97794b88a4948f81a74a69f15b81156e441f13c /config | |
parent | 2caacdf8189c885269db4bc982995d5e935b9239 (diff) | |
download | dotfiles-871420604686f0b91f7f3950de0c6db57dadf869.tar.gz dotfiles-871420604686f0b91f7f3950de0c6db57dadf869.tar.xz |
config: emacs: use localhost dictionary and dictionary.el
Move `define-word` into Dictionary section.
[0]: https://irreal.org/blog/?p=10867
[1]: https://www.masteringemacs.org/article/wordsmithing-in-emacs
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'config')
-rw-r--r-- | config/emacs/emacs.d/emacs.org | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/config/emacs/emacs.d/emacs.org b/config/emacs/emacs.d/emacs.org index d25a92ae..d3b69632 100644 --- a/config/emacs/emacs.d/emacs.org +++ b/config/emacs/emacs.d/emacs.org @@ -1335,10 +1335,6 @@ https://masteringemacs.org/article/polymode-multiple-major-modes-how-to-use-sql- :config (setq olivetti-minimum-body-width 100)) -(use-package define-word) - -(bind-key (kbd "C-c h d") #'define-word-at-point) - (setq backward-delete-char-untabify-method 'hungry) @@ -1378,6 +1374,25 @@ https://masteringemacs.org/article/polymode-multiple-major-modes-how-to-use-sql- #+end_src +**** Dictionary +:PROPERTIES: +:ID: c17c3bc7-0d74-43c3-92d2-82f8e853783f +:END: + +#+begin_src elisp +(require 'dictionary) + +(setq dictionary-server "localhost") + +(bind-key (kbd "M-#") #'dictionary-lookup-definition) +#+end_src + +#+begin_src elisp +(use-package define-word) + +(bind-key (kbd "C-c h d") #'define-word-at-point) +#+end_src + **** Thesauri :PROPERTIES: :ID: a86b1a05-5518-4b80-9bca-94060959b49b |