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,10 +122,10 @@ argument: the identifier at point.")
|
||||
;; Dash docset integration
|
||||
;;
|
||||
|
||||
(when (featurep! +docsets)
|
||||
;; Both packages depend on helm-dash
|
||||
;; Both packages depend on helm-dash, for now
|
||||
(def-package! helm-dash
|
||||
:defer t
|
||||
:when (featurep! +docsets)
|
||||
:init
|
||||
(setq helm-dash-enable-debugging doom-debug-mode
|
||||
helm-dash-browser-func #'eww)
|
||||
@@ -136,9 +136,10 @@ argument: the identifier at point.")
|
||||
(make-directory helm-dash-docsets-path t)))
|
||||
|
||||
(def-package! counsel-dash
|
||||
:when (featurep! :completion ivy)
|
||||
:when (and (featurep! +docsets)
|
||||
(featurep! :completion ivy))
|
||||
:commands counsel-dash-install-docset
|
||||
:config (setq counsel-dash-min-length 2)))
|
||||
:config (setq counsel-dash-min-length 2))
|
||||
|
||||
|
||||
;;
|
||||
|
Reference in New Issue
Block a user