mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add :requires prop to def-bootstrap! & refactor+rewrite bootstrapping
This commit is contained in:
@ -8,3 +8,15 @@
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-inf-ruby))
|
||||
|
||||
;;
|
||||
(def-bootstrap! ruby
|
||||
;; Since there are so many possible setups for a ruby environment (rbenv, rvm,
|
||||
;; etc), I'll leave it to you and only take care of installing gem
|
||||
;; dependencies.
|
||||
(unless (executable-find "ruby")
|
||||
(error "ruby isn't installed"))
|
||||
(unless (executable-find "gem")
|
||||
(error "gem isn't installed"))
|
||||
(when-let (pkgs (cl-remove-if 'executable-find) '("ruby-lint")))
|
||||
(sh "gem install %s" (s-join " " pkgs)))
|
||||
|
Reference in New Issue
Block a user