;; see conditional package inclusion
(setq dash-packages
'(
(dash-at-point :toggle (spacemacs/system-is-mac))
(helm-dash :requires helm)
(counsel-dash :requires ivy)
(zeal-at-point :toggle (or (spacemacs/system-is-linux)
(spacemacs/system-is-mswindows)))))
(defun dash/init-helm-dash ()
(use-package helm-dash
:defer t
:init (progn
(spacemacs/declare-prefix "d" "docs")
(spacemacs/set-leader-keys
"dh" 'helm-dash-at-point
"dH" 'helm-dash))
:config (when dash-autoload-common-docsets
(dash//activate-package-docsets dash-docs-docset-newpath))))
(defun dash/init-counsel-dash ()
(use-package counsel-dash
"dh" 'counsel-dash-at-point
"dH" 'counsel-dash))
(defun dash/init-dash-at-point ()
(use-package dash-at-point
"dd" 'dash-at-point
"dD" 'dash-at-point-with-docset))))
(defun dash/init-zeal-at-point ()
(use-package zeal-at-point
"dd" 'zeal-at-point
"dD" 'zeal-at-point-set-docset))
:config
;; This lets users seach in multiple docsets
(add-to-list 'zeal-at-point-mode-alist '(web-mode . "html,css,javascript"))))