summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-10-23 14:27:09 +0200
committerAlan Pearce2017-10-23 14:27:09 +0200
commita9b6773e1c864561d358405a988c27fe443b5f71 (patch)
treea63089bae3cb843fa84e38c177c1258f98c8dbae
parent905eb9464776c47504fef096f791e49141fa5d72 (diff)
downloaddotfiles-a9b6773e1c864561d358405a988c27fe443b5f71.tar.lz
dotfiles-a9b6773e1c864561d358405a988c27fe443b5f71.tar.zst
dotfiles-a9b6773e1c864561d358405a988c27fe443b5f71.zip
Emacs: Configure define-word package
-rw-r--r--emacs/.emacs.d/main.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 09c7368..16b5405 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2312,6 +2312,15 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
             (add-hook 'text-mode-hook 'fly-text-mode-hook-setup)
             (add-hook 'prog-mode-hook #'flyspell-prog-mode)))
 
+;;;;; Dictionary
+
+;; One thing I miss from macOS is the "look up" functionality to define
+;; words by a certain gesture.  =define-word= can provide something
+;; similar, at least in Emacs.
+
+(use-package define-word
+  :bind ("M-<f8>" . define-word-at-point))
+
 ;;;;; Style checking
 
 ;; [[https://github.com/ValeLint/vale][Vale]] is a linter, but for prose.  Neat idea!  Salesman is a bad term.