mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
fix(lookup): correctly scrape identifier in pdf-view-mode
This commit is contained in:
@@ -408,6 +408,8 @@ Otherwise, falls back on `find-file-at-point'."
|
|||||||
"Look up the definition of the word at point (or selection)."
|
"Look up the definition of the word at point (or selection)."
|
||||||
(interactive
|
(interactive
|
||||||
(list (or (doom-thing-at-point-or-region 'word)
|
(list (or (doom-thing-at-point-or-region 'word)
|
||||||
|
(if (equal major-mode 'pdf-view-mode)
|
||||||
|
(car (pdf-view-active-region-text)))
|
||||||
(read-string "Look up in dictionary: "))
|
(read-string "Look up in dictionary: "))
|
||||||
current-prefix-arg))
|
current-prefix-arg))
|
||||||
(message "Looking up dictionary definition for %S" identifier)
|
(message "Looking up dictionary definition for %S" identifier)
|
||||||
|
Reference in New Issue
Block a user