This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+tools/dash/packages.el

42 lines
1.3 KiB
EmacsLisp
Raw Normal View History

;; see conditional package inclusion
(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)))))
(defun dash/init-helm-dash ()
(use-package helm-dash
:defer t
2017-05-19 01:49:18 +00:00
:init (spacemacs/set-leader-keys
"dh" 'helm-dash-at-point
"dH" 'helm-dash)
:config (dash//activate-package-docsets helm-dash-docset-newpath)))
2016-06-20 07:13:20 +00:00
(defun dash/init-counsel-dash ()
(use-package counsel-dash
:defer t
2017-05-19 01:49:18 +00:00
:init (spacemacs/set-leader-keys
"dh" 'counsel-dash-at-point
"dH" 'counsel-dash)
:config (dash//activate-package-docsets helm-dash-docset-newpath)))
2015-01-14 06:54:44 +00:00
(defun dash/init-dash-at-point ()
(use-package dash-at-point
:defer t
2017-05-19 01:49:18 +00:00
:init (spacemacs/set-leader-keys
"dd" 'dash-at-point
"dD" 'dash-at-point-with-docset)))
(defun dash/init-zeal-at-point ()
(use-package zeal-at-point
:defer t
2017-05-19 01:49:18 +00:00
:init (spacemacs/set-leader-keys
"dd" 'zeal-at-point
"dD" 'zeal-at-point-set-docset)
:config
;; This lets users seach in multiple docsets
2017-05-19 01:49:18 +00:00
(push '(web-mode . "html,css,javascript") zeal-at-point-mode-alist)))