spacemacs/layers/+tools/dash/packages.el
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00

43 lines
1.3 KiB
EmacsLisp

;; see conditional package inclusion
(setq dash-packages '(helm-dash))
(cond
((spacemacs/system-is-mac) (push 'dash-at-point dash-packages))
((spacemacs/system-is-linux) (push 'zeal-at-point dash-packages)))
(defun dash/init-helm-dash ()
(use-package helm-dash
:defer t
:init
(evil-leader/set-key
"dh" 'helm-dash-at-point
"dH" 'helm-dash)
:config
(defun dash//activate-package-docsets (path)
"Add dash docsets from specified PATH."
(setq helm-dash-docsets-path path
helm-dash-common-docsets (helm-dash-installed-docsets))
(message (format "activated %d docsets from: %s"
(length helm-dash-common-docsets) path)))
(dash//activate-package-docsets dash-helm-dash-docset-path)))
(defun dash/init-dash-at-point ()
(use-package dash-at-point
:defer t
:init
(progn
(evil-leader/set-key "dd" 'dash-at-point)
(evil-leader/set-key "dD" 'dash-at-point-with-docset))))
(defun dash/init-zeal-at-point ()
(use-package zeal-at-point
:defer t
:init
(evil-leader/set-key
"dd" 'zeal-at-point
"dD" 'zeal-at-point-set-docset)
:config
;; This lets users seach in multiple docsets
(push '(web-mode . "html,css,javascript") zeal-at-point-mode-alist)
))