2016-05-26 18:43:22 -04:00
|
|
|
;;; 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
|
2016-06-17 16:01:18 -04:00
|
|
|
(defun doom-docs-lookup (&optional search all)
|
|
|
|
(let ((docset (unless all (dash-at-point-guess-docset))))
|
|
|
|
(dash-at-point-run-search search docset))))
|
2016-05-26 18:43:22 -04:00
|
|
|
|
|
|
|
(use-package zeal-at-point
|
|
|
|
:when (not IS-MAC)
|
|
|
|
:commands (zeal-at-point zeal-at-point-set-docset)
|
|
|
|
:init
|
2016-06-17 16:01:18 -04:00
|
|
|
(defun doom-docs-lookup (&optional search all)
|
|
|
|
(let ((zeal-at-point-docset (if all "" zeal-at-point-docset)))
|
2016-05-26 18:43:22 -04:00
|
|
|
(zeal-at-point search))))
|
|
|
|
|
2016-06-17 16:01:18 -04:00
|
|
|
(defmacro def-docset! (mode docset)
|
|
|
|
`(add-hook! ,mode
|
|
|
|
(setq-local ,(if IS-MAC 'dash-at-point-docset 'zeal-at-point-docset)
|
|
|
|
,docset)))
|
|
|
|
|
2016-10-03 12:11:10 +02:00
|
|
|
(use-package google-this
|
|
|
|
:commands (google-this-search
|
|
|
|
google-this-lucky-and-insert-url
|
|
|
|
google-this-lucky-search
|
|
|
|
google-this-string
|
|
|
|
google-this-line
|
|
|
|
google-this-ray
|
|
|
|
google-this-word
|
|
|
|
google-this-symbol
|
|
|
|
google-this-region
|
|
|
|
google-this
|
|
|
|
google-this-noconfirm
|
|
|
|
google-this-error
|
|
|
|
google-this-cpp-reference
|
|
|
|
google-this-forecast))
|
|
|
|
|
2016-05-26 18:43:22 -04:00
|
|
|
(provide 'core-docs)
|
|
|
|
;;; core-docs.el ends here
|