def-docset

This commit is contained in:
Henrik Lissner 2016-05-24 22:09:50 -04:00
parent 99e2e4c5ea
commit ec9c12e17e
20 changed files with 42 additions and 21 deletions

View file

@ -75,12 +75,10 @@
(use-package helm-dash
:when (not IS-WINDOWS)
:commands (helm-dash helm-dash-at-point helm-dash-install-docset def-docset!)
:commands (helm-dash helm-dash-at-point helm-dash-install-docset)
:config
(setq helm-dash-browser-func 'doom/dash-open
helm-dash-candidate-format "%d → %n (%t)")
(defmacro def-docset! (mode docsets)
`(add-hook! ,mode (setq-local helm-dash-docsets ',docsets))))
helm-dash-candidate-format "%d → %n (%t)"))
(use-package helm-tags
:commands (helm-tags-get-tag-file helm-etags-select))

View file

@ -0,0 +1,8 @@
;;; macros-dash.el
;;;###autoload
(defmacro def-docset! (mode docsets)
`(add-hook! ,mode (setq-local helm-dash-docsets ',docsets)))
(provide 'macros-dash)
;;; macros-dash.el ends here