Skip to content

Commit

Permalink
Add labeled prefix for dash layer
Browse files Browse the repository at this point in the history
Currently the "d" prefix in the which-key menu is displayed as "prefix". This patch replaces that with "docs".
  • Loading branch information
Jake Romer authored and smile13241324 committed Apr 11, 2019
1 parent 66b3a0b commit 12defb4
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions layers/+readers/dash/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,40 @@
(defun dash/init-helm-dash ()
(use-package helm-dash
:defer t
:init (spacemacs/set-leader-keys
:init (progn
(spacemacs/declare-prefix "d" "docs")
(spacemacs/set-leader-keys
"dh" 'helm-dash-at-point
"dH" 'helm-dash)
"dH" 'helm-dash))
:config (dash//activate-package-docsets helm-dash-docset-newpath)))

(defun dash/init-counsel-dash ()
(use-package counsel-dash
:defer t
:init (spacemacs/set-leader-keys
:init (progn
(spacemacs/declare-prefix "d" "docs")
(spacemacs/set-leader-keys
"dh" 'counsel-dash-at-point
"dH" 'counsel-dash)
"dH" 'counsel-dash))
:config (dash//activate-package-docsets helm-dash-docset-newpath)))

(defun dash/init-dash-at-point ()
(use-package dash-at-point
:defer t
:init (spacemacs/set-leader-keys
:init (progn
(spacemacs/declare-prefix "d" "docs")
(spacemacs/set-leader-keys
"dd" 'dash-at-point
"dD" 'dash-at-point-with-docset)))
"dD" 'dash-at-point-with-docset))))

(defun dash/init-zeal-at-point ()
(use-package zeal-at-point
:defer t
:init (spacemacs/set-leader-keys
:init (progn
(spacemacs/declare-prefix "d" "docs")
(spacemacs/set-leader-keys
"dd" 'zeal-at-point
"dD" 'zeal-at-point-set-docset)
"dD" 'zeal-at-point-set-docset))
:config
;; This lets users seach in multiple docsets
(add-to-list 'zeal-at-point-mode-alist '(web-mode . "html,css,javascript"))))

0 comments on commit 12defb4

Please sign in to comment.