Skip to content

Commit

Permalink
When searching on whitespace: default to "lexical"
Browse files Browse the repository at this point in the history
  • Loading branch information
tecosaur committed Jul 29, 2021
1 parent 791d7b6 commit 44c32d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lexic.el
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ TODO decouple the tool from the general method."
(guess (or (and transient-mark-mode mark-active
(buffer-substring-no-properties
(region-beginning) (region-end)))
(current-word nil t)))
(current-word nil t)
"lexical"))
(word (read-string (format "Search dict (default: %s): " guess)
nil nil guess)))
(list word dict-list-name dict-list t)))
Expand Down Expand Up @@ -279,7 +280,9 @@ TODO decouple the tool from the general method."
(or (and transient-mark-mode mark-active
(buffer-substring-no-properties
(region-beginning) (region-end)))
(current-word nil t))) nil nil t))
(current-word nil t)
"lexical"))
nil nil t))

(defun lexic-list-dictionary ()
"Show available dictionaries."
Expand Down

0 comments on commit 44c32d9

Please sign in to comment.