Skip to content

Commit

Permalink
Use thing-at-point as initial input
Browse files Browse the repository at this point in the history
* helm-dictionary.el (helm-dictionary): Do it.
  • Loading branch information
Thierry Volpiatto committed Nov 10, 2019
1 parent 805ce85 commit 6a21ac1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm-dictionary.el
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ browser in `helm-browse-url-default-browser-alist'"
(lambda (x) (helm-dictionary-build (car x) (cdr x)))
(if (stringp helm-dictionary-database)
(list (cons "Search dictionary" helm-dictionary-database))
helm-dictionary-database))))
helm-dictionary-database)))
(input (thing-at-point 'word)))
(helm :sources (append helm-source-dictionary (list helm-source-dictionary-online))
:full-frame t
:input input
:candidate-number-limit 500
:buffer "*helm dictionary*")))

Expand Down

0 comments on commit 6a21ac1

Please sign in to comment.