2015-04-19 03:40:24 +00:00
|
|
|
;; see conditional package inclusion
|
2016-05-30 02:39:21 +00:00
|
|
|
(setq dash-packages
|
|
|
|
'(
|
2017-05-19 01:49:18 +00:00
|
|
|
(dash-at-point :toggle (spacemacs/system-is-mac))
|
2017-07-03 07:52:54 +00:00
|
|
|
(helm-dash :requires helm)
|
|
|
|
(counsel-dash :requires ivy)
|
2017-05-19 01:49:18 +00:00
|
|
|
(zeal-at-point :toggle (or (spacemacs/system-is-linux)
|
|
|
|
(spacemacs/system-is-mswindows)))))
|
2015-06-12 20:59:07 +00:00
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
(defun dash/init-helm-dash ()
|
|
|
|
(use-package helm-dash
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2019-01-27 19:14:16 +00:00
|
|
|
:init (progn
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/declare-prefix "d" "docs")
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
"dh" 'helm-dash-at-point
|
|
|
|
"dH" 'helm-dash))
|
2019-06-30 20:44:39 +00:00
|
|
|
:config (when dash-autoload-common-docsets
|
2019-05-16 15:53:58 +00:00
|
|
|
(dash//activate-package-docsets dash-docs-docset-newpath))))
|
2016-06-20 07:13:20 +00:00
|
|
|
|
|
|
|
(defun dash/init-counsel-dash ()
|
|
|
|
(use-package counsel-dash
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2019-01-27 19:14:16 +00:00
|
|
|
:init (progn
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/declare-prefix "d" "docs")
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
"dh" 'counsel-dash-at-point
|
|
|
|
"dH" 'counsel-dash))
|
2019-06-30 20:44:39 +00:00
|
|
|
:config (when dash-autoload-common-docsets
|
2019-05-16 15:53:58 +00:00
|
|
|
(dash//activate-package-docsets dash-docs-docset-newpath))))
|
2015-03-10 08:05:43 +00:00
|
|
|
|
2015-01-14 06:54:44 +00:00
|
|
|
(defun dash/init-dash-at-point ()
|
|
|
|
(use-package dash-at-point
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2019-01-27 19:14:16 +00:00
|
|
|
:init (progn
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/declare-prefix "d" "docs")
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
"dd" 'dash-at-point
|
|
|
|
"dD" 'dash-at-point-with-docset))))
|
2015-03-10 08:05:43 +00:00
|
|
|
|
2015-06-12 20:59:07 +00:00
|
|
|
(defun dash/init-zeal-at-point ()
|
|
|
|
(use-package zeal-at-point
|
2018-03-04 04:37:53 +00:00
|
|
|
:defer t
|
2019-01-27 19:14:16 +00:00
|
|
|
:init (progn
|
|
|
|
(spacemacs/declare-prefix "d" "docs")
|
|
|
|
(spacemacs/set-leader-keys
|
2017-05-19 01:49:18 +00:00
|
|
|
"dd" 'zeal-at-point
|
2019-01-27 19:14:16 +00:00
|
|
|
"dD" 'zeal-at-point-set-docset))
|
2015-03-10 08:05:43 +00:00
|
|
|
:config
|
2019-12-05 12:24:12 +00:00
|
|
|
;; This lets users search in multiple docsets
|
2018-06-01 06:59:57 +00:00
|
|
|
(add-to-list 'zeal-at-point-mode-alist '(web-mode . "html,css,javascript"))))
|