doomemacs/modules/feature/jump/autoload/evil.el

12 lines
526 B
EmacsLisp
Raw Normal View History

;;; feature/jump/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :feature evil)
2017-05-21 15:06:15 +02:00
;;;###autoload (autoload '+jump:online "feature/jump/autoload/evil" nil t)
(evil-define-command +jump:online (query &optional bang)
2017-05-21 15:08:20 +02:00
"Look up QUERY online. Will prompt for search engine the first time, then
reuse it on consecutive uses of this command. If BANG, always prompt for search
engine."
2017-05-21 15:06:15 +02:00
(interactive "<a><!>")
(+jump/online (or query (thing-at-point 'symbol t))
(+jump--online-get-provider bang)))