:feature was a "catch-all" category. Many of its modules fit better in other categories, so they've been moved: - feature/debugger -> tools/debugger - feature/evil -> editor/evil - feature/eval -> tools/eval - feature/lookup -> tools/lookup - feature/snippets -> editor/snippets - feature/file-templates -> editor/file-templates - feature/workspaces -> ui/workspaces More potential changes in the future: - A new :term category for terminal emulation modules (eshell, term and vterm). - A new :os category for modules dedicated to os-specific functionality. The :tools macos module would fit here, but so would modules for nixos and arch. - A new :services category for web-service integration, like wakatime, twitter, elfeed, gist and pastebin services.
22 lines
1 KiB
EmacsLisp
22 lines
1 KiB
EmacsLisp
;;; tools/lookup/autoload/evil.el -*- lexical-binding: t; -*-
|
|
;;;###if (featurep! :editor evil)
|
|
|
|
;;;###autoload (autoload '+lookup:online "tools/lookup/autoload/evil" nil t)
|
|
(evil-define-command +lookup:online (query &optional bang)
|
|
"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."
|
|
(interactive "<a><!>")
|
|
(+lookup/online query (+lookup--online-provider bang 'evil-ex)))
|
|
|
|
;;;###autoload (autoload '+lookup:dash "tools/lookup/autoload/evil" nil t)
|
|
(evil-define-command +lookup:dash (query &optional bang)
|
|
"Look up QUERY in your dash docsets. If BANG, prompt to select a docset (and
|
|
install it if necessary)."
|
|
(interactive "<a><!>")
|
|
(let (selected)
|
|
(when bang
|
|
(setq selected (helm-dash-read-docset "Select docset" (helm-dash-official-docsets)))
|
|
(unless (+lookup-docset-installed-p selected)
|
|
(+lookup/install-docset selected)))
|
|
(+lookup/in-docsets query (or selected (+lookup-docsets-for-buffer)))))
|