feature/lookup: fix counsel-dash not loading; use eww for docsets

This commit is contained in:
Henrik Lissner 2018-05-11 20:23:25 +02:00
parent 587d69dda0
commit 1b6abf47ef
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -203,17 +203,18 @@ Used by `+lookup/in-docsets' and `+lookup/documentation'."
(def-package! helm-dash (def-package! helm-dash
:commands (helm-dash helm-dash-install-docset helm-dash-at-point :commands (helm-dash helm-dash-install-docset helm-dash-at-point
helm-dash-docset-installed-p helm-dash-installed-docsets) helm-dash-docset-installed-p helm-dash-installed-docsets)
:init
(setq helm-dash-enable-debugging doom-debug-mode
helm-dash-browser-func #'eww)
:config :config
(unless (file-directory-p helm-dash-docsets-path) (unless (file-directory-p helm-dash-docsets-path)
(setq helm-dash-docsets-path (concat doom-etc-dir "docsets/"))) (setq helm-dash-docsets-path (concat doom-etc-dir "docsets/")))
(unless (file-directory-p helm-dash-docsets-path) (unless (file-directory-p helm-dash-docsets-path)
(make-directory helm-dash-docsets-path t)) (make-directory helm-dash-docsets-path t)))
(setq helm-dash-enable-debugging doom-debug-mode))
(def-package! counsel-dash (def-package! counsel-dash
:when (featurep! :completion ivy) :when (featurep! :completion ivy)
:commands (counsel-dash counsel-dash-install-docset) :commands (counsel-dash counsel-dash-install-docset)
:after helm-dash
:config (setq counsel-dash-min-length 2))) :config (setq counsel-dash-min-length 2)))