Use s.el instead of subr-x string funcs

This commit is contained in:
Henrik Lissner 2017-03-25 01:45:23 -04:00
parent 2526101de6
commit 2a377b44f1
6 changed files with 7 additions and 7 deletions

View file

@ -20,5 +20,5 @@
(when-let (pkgs (cl-remove-if
(lambda (pkg) (zerop (shell-command (format "pip show %s" pkg))))
'("jedi" "setuptools")))
(sh "pip install %s" (string-join pkgs " "))
(sh "pip install %s" (s-join " " pkgs))
t))

View file

@ -18,7 +18,7 @@
(unless (executable-find "rustc") (push "rust" pkgs))
(unless (executable-find "cargo") (push "cargo" pkgs))
(when pkgs
(sudo "pacman --noconfirm -S %s" (string-join pkgs " ")))))
(sudo "pacman --noconfirm -S %s" (s-join " " pkgs)))))
('debian) ;; TODO
('macos
(unless (executable-find "rustc")

View file

@ -7,7 +7,7 @@
;;
(def-bootstrap! sh
(when-let (progs (cl-remove-if 'executable-find '("zshdb" "bashdb" "shellcheck")))
(let ((prog-str (string-join progs " ")))
(let ((prog-str (s-join " " progs)))
(pcase (doom-system-os)
('arch
(sudo "pacman --noconfirm -S %s" prog-str))