mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
Use :when instead of (when ...) block
For loading dash docsets in feature/lookup module. Fixes 'Cannot find package' load errors during byte-compilation.
This commit is contained in:
@@ -122,23 +122,24 @@ argument: the identifier at point.")
|
|||||||
;; Dash docset integration
|
;; Dash docset integration
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(when (featurep! +docsets)
|
;; Both packages depend on helm-dash, for now
|
||||||
;; Both packages depend on helm-dash
|
(def-package! helm-dash
|
||||||
(def-package! helm-dash
|
:defer t
|
||||||
:defer t
|
:when (featurep! +docsets)
|
||||||
:init
|
:init
|
||||||
(setq helm-dash-enable-debugging doom-debug-mode
|
(setq helm-dash-enable-debugging doom-debug-mode
|
||||||
helm-dash-browser-func #'eww)
|
helm-dash-browser-func #'eww)
|
||||||
:config
|
:config
|
||||||
(unless (file-directory-p helm-dash-docsets-path)
|
(unless (file-directory-p helm-dash-docsets-path)
|
||||||
(setq helm-dash-docsets-path (concat doom-etc-dir "docsets/")))
|
(setq helm-dash-docsets-path (concat doom-etc-dir "docsets/")))
|
||||||
(unless (file-directory-p helm-dash-docsets-path)
|
(unless (file-directory-p helm-dash-docsets-path)
|
||||||
(make-directory helm-dash-docsets-path t)))
|
(make-directory helm-dash-docsets-path t)))
|
||||||
|
|
||||||
(def-package! counsel-dash
|
(def-package! counsel-dash
|
||||||
:when (featurep! :completion ivy)
|
:when (and (featurep! +docsets)
|
||||||
:commands counsel-dash-install-docset
|
(featurep! :completion ivy))
|
||||||
:config (setq counsel-dash-min-length 2)))
|
:commands counsel-dash-install-docset
|
||||||
|
:config (setq counsel-dash-min-length 2))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user