tools/lookup: fix definition (on mac) & synonym lookup

This commit is contained in:
Henrik Lissner 2019-12-24 20:48:15 -05:00
parent 914b9b0424
commit 55f0be7074
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 5 deletions

View file

@ -336,7 +336,7 @@ Otherwise, falls back on `find-file-at-point'."
(unless (featurep! +dictionary) (unless (featurep! +dictionary)
(user-error "The +dictionary feature hasn't be enabled on :tools lookup module")) (user-error "The +dictionary feature hasn't be enabled on :tools lookup module"))
(cond (IS-MAC (cond (IS-MAC
(osx-dictionary-search-input identifier)) (osx-dictionary--view-result identifier))
(+lookup-dictionary-enable-online (+lookup-dictionary-enable-online
(define-word identifier nil arg)) (define-word identifier nil arg))
;; TODO Implement offline dictionary backend ;; TODO Implement offline dictionary backend

View file

@ -10,9 +10,7 @@
;; ;;
(package! dumb-jump) (package! dumb-jump)
(when (featurep! :completion ivy) (when (featurep! :completion ivy)
(package! ivy-xref) (package! ivy-xref))
;; Need for Google/DuckDuckGo auto-completion on `+lookup/online'
(package! request))
(when (featurep! :completion helm) (when (featurep! :completion helm)
(package! helm-google) (package! helm-google)
(package! helm-xref)) (package! helm-xref))
@ -28,4 +26,6 @@
(if IS-MAC (if IS-MAC
(package! osx-dictionary) (package! osx-dictionary)
(package! define-word)) (package! define-word))
(package! powerthesaurus)) ;; Need for Google/DuckDuckGo auto-completion on `+lookup/online'
(package! powerthesaurus)
(package! request))