Back to dash-at-point! (and zeal-at-point)
This commit is contained in:
parent
7963c48600
commit
9e7749cf1d
28 changed files with 58 additions and 120 deletions
24
core/core-docs.el
Normal file
24
core/core-docs.el
Normal file
|
@ -0,0 +1,24 @@
|
|||
;;; core-docs.el
|
||||
|
||||
(use-package dash-at-point
|
||||
:when IS-MAC
|
||||
:commands (dash-at-point dash-at-point-with-docset dash-at-point-run-search
|
||||
dash-at-point-guess-docset)
|
||||
:init
|
||||
(defmacro def-docset! (mode docset)
|
||||
`(add-hook! ,mode (setq-local dash-at-point-docset ,docset)))
|
||||
(defun doom-docs-lookup (&optional search docset)
|
||||
(dash-at-point-run-search search docset)))
|
||||
|
||||
(use-package zeal-at-point
|
||||
:when (not IS-MAC)
|
||||
:commands (zeal-at-point zeal-at-point-set-docset)
|
||||
:init
|
||||
(defmacro def-docset! (mode docset)
|
||||
`(add-hook! ,mode (setq-local zeal-at-point-docset ,docset)))
|
||||
(defun doom-docs-lookup (&optional search docset)
|
||||
(let ((zeal-at-point-docset (or docset zeal-at-point-docset)))
|
||||
(zeal-at-point search))))
|
||||
|
||||
(provide 'core-docs)
|
||||
;;; core-docs.el ends here
|
Loading…
Add table
Add a link
Reference in a new issue