💥 Replace feature/jump with feature/lookup

+ Adds Dash docset integration (with helm or ivy support)
+ Adds devdocs.io integration
+ Three new settings: :lookup, :devdocs and :docset
This commit is contained in:
Henrik Lissner 2018-01-04 17:05:37 -05:00
parent 4af4803e0b
commit 1371d34149
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
14 changed files with 666 additions and 284 deletions

View file

@ -0,0 +1,22 @@
;;; feature/lookup/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :feature evil)
;;;###autoload (autoload '+lookup:online "feature/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 "feature/lookup/autoload/evil" nil t)
(evil-define-command +lookup:dash (query &optional bang)
"TODO"
(interactive "<a><!>")
(+lookup/in-docsets query (if bang 'blank)))
;;;###autoload (autoload '+lookup:devdocs "feature/lookup/autoload/evil" nil t)
(evil-define-command +lookup:devdocs (query &optional bang)
"TODO"
(interactive "<a><!>")
(+lookup/in-devdocs query (if bang 'blank)))