branch: elpa/sass-mode commit 37105f46f6ea3592039f2ea7d0463ae7f042616e Author: Steve Purcell <st...@sanityinc.com> Commit: Steve Purcell <st...@sanityinc.com>
Make sass-command-options a list of strings See #24 --- sass-mode.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sass-mode.el b/sass-mode.el index d8a56ec..e1dec3a 100644 --- a/sass-mode.el +++ b/sass-mode.el @@ -47,7 +47,7 @@ (defcustom sass-command-options nil "Options to pass to the `sass' command." - :type 'string + :type '(repeat string) :group 'sass) (defcustom sass-before-eval-hook nil @@ -248,7 +248,10 @@ Called from a program, START and END specify the region to indent." (newline-and-indent) (run-hooks 'sass-before-eval-hook) (sass--remove-leading-indent) - (shell-command-on-region (point-min) (point-max) (mapconcat #'identity (list "sass" sass-command-options "--stdin") " ") + (shell-command-on-region (point-min) + (point-max) + (mapconcat #'identity + (append '("sass") sass-command-options '("--stdin")) " ") output-buffer nil errors-buffer