2015-01-14 06:54:44 +00:00
|
|
|
(defvar dash-packages
|
2015-03-10 08:05:43 +00:00
|
|
|
'()
|
2015-01-14 06:54:44 +00:00
|
|
|
"List of all packages to install and/or initialize. Built-in packages
|
|
|
|
which require an initialization must be listed explicitly in the list.")
|
|
|
|
|
|
|
|
(if (system-is-mac)
|
|
|
|
(push 'dash-at-point dash-packages))
|
|
|
|
|
2015-03-10 08:05:43 +00:00
|
|
|
(if (system-is-linux)
|
|
|
|
(push 'helm-dash dash-packages))
|
|
|
|
|
2015-01-14 06:54:44 +00:00
|
|
|
(defun dash/init-dash-at-point ()
|
|
|
|
(use-package dash-at-point
|
|
|
|
:commands dash-at-point
|
|
|
|
:init
|
|
|
|
(evil-leader/set-key "dd" 'dash-at-point)
|
|
|
|
(evil-leader/set-key "dD" 'dash-at-point-with-docset)))
|
2015-03-10 08:05:43 +00:00
|
|
|
|
|
|
|
(defun dash/init-helm-dash ()
|
|
|
|
(use-package helm-dash
|
|
|
|
:commands helm-dash
|
|
|
|
:init
|
|
|
|
(evil-leader/set-key "dd" 'helm-dash-at-point)
|
|
|
|
(evil-leader/set-key "dD" 'helm-dash)
|
|
|
|
:config
|
|
|
|
(progn
|
|
|
|
(dash/activate-package-docsets dash/helm-dash-docset-newpath)
|
|
|
|
)))
|