doomemacs/core/core-docs.el

43 lines
1.3 KiB
EmacsLisp
Raw Normal View History

;;; 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-18 04:01:18 +08:00
(defun doom-docs-lookup (&optional search all)
(let ((docset (unless all (dash-at-point-guess-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
2016-06-18 04:01:18 +08:00
(defun doom-docs-lookup (&optional search all)
(let ((zeal-at-point-docset (if all "" zeal-at-point-docset)))
(zeal-at-point search))))
2016-06-18 04:01:18 +08: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 18:11:10 +08: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))
(provide 'core-docs)
;;; core-docs.el ends here