2020-04-16 19:45:59 +00:00
|
|
|
;;; packages.el --- Dash Layer packages File for Spacemacs
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2020-04-16 19:45:59 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2020-04-16 19:45:59 +00:00
|
|
|
|
|
|
|
;; see conditional package inclusion
|
|
|
|
(defconst 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)))))
|
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
|
2020-06-28 21:25:04 +00:00
|
|
|
(spacemacs/declare-prefix "arz" "zeal/dash docs")
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/set-leader-keys
|
2020-04-16 19:45:59 +00:00
|
|
|
"azh" 'helm-dash-at-point
|
|
|
|
"azH" '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
|
2020-06-28 21:25:04 +00:00
|
|
|
(spacemacs/declare-prefix "arz" "zeal/dash docs")
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/set-leader-keys
|
2020-06-28 21:25:04 +00:00
|
|
|
"arzh" 'counsel-dash-at-point
|
|
|
|
"arzH" '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
|
2020-06-28 21:25:04 +00:00
|
|
|
(spacemacs/declare-prefix "arz" "zeal/dash docs")
|
2019-05-16 15:53:58 +00:00
|
|
|
(spacemacs/set-leader-keys
|
2020-06-28 21:25:04 +00:00
|
|
|
"arzd" 'dash-at-point
|
|
|
|
"arzD" '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
|
2020-06-28 21:25:04 +00:00
|
|
|
(spacemacs/declare-prefix "arz" "zeal/dash docs")
|
2020-04-16 19:45:59 +00:00
|
|
|
(spacemacs/set-leader-keys
|
2020-06-28 21:25:04 +00:00
|
|
|
"arzd" 'zeal-at-point
|
|
|
|
"arzD" '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"))))
|