branch: elpa/sass-mode
commit d72a55f7756bf39e8869c63e5be266a428a1f3be
Author: Daniel Luna <dancl...@gmail.com>
Commit: Daniel Luna <dancl...@gmail.com>

    Add sass-command-options variable.
---
 sass-mode.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sass-mode.el b/sass-mode.el
index e271907..2c636bd 100644
--- a/sass-mode.el
+++ b/sass-mode.el
@@ -45,6 +45,11 @@
   :type 'integer
   :group 'sass)
 
+(defcustom sass-command-options nil
+  "Options to pass to the `sass' command."
+  :type 'string
+  :group 'sass)
+
 (defvar sass-non-block-openers
   '("^.*,$" ;; Continued selectors
     "^ *@\\(extend\\|debug\\|warn\\|include\\|import\\)" ;; Single-line mixins
@@ -237,7 +242,7 @@ Called from a program, START and END specify the region to 
indent."
              (insert region-contents)
              (newline-and-indent)
              (sass--remove-leading-indent)
-             (shell-command-on-region (point-min) (point-max) "sass --stdin"
+             (shell-command-on-region (point-min) (point-max) (mapconcat 
#'identity (list "sass" sass-command-options "--stdin") " ")
                                       output-buffer
                                       nil
                                       errors-buffer

Reply via email to