jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.41k stars 260 forks source link

ensure-system-package doesn't support file path expression #886

Open cxa opened 3 years ago

cxa commented 3 years ago

I don't want to hardcode path, so if get path from shell, this will not work.

(use-package svelte-mode
  :ensure t
  :ensure-system-package
  ((concat
    (string-trim (shell-command-to-string "npm root -g"))
    "/prettier-plugin-svelte")
   . "npm i -g prettier-plugin-svelte"))