Skip to content

Commit

Permalink
Changed use of (buffer-name) to var buffer-file-name which makes more…
Browse files Browse the repository at this point in the history
… sense and works with `uniquify' mode.
  • Loading branch information
antonj committed Dec 12, 2010
1 parent 59f48d7 commit ce3c0c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scss-mode.el
Expand Up @@ -64,11 +64,11 @@ HYPERLINK HIGHLIGHT)"
(scss-compile)))

(defun scss-compile()
"Compiles the current buffer, sass buffername.scss buffername.css"
"Compiles the current buffer, sass filename.scss filename.css"
(interactive)
(compile (concat scss-sass-command " "
(buffer-name) " "
(first (split-string (buffer-name) ".scss")) ".css")))
buffer-file-name " "
(first (split-string buffer-file-name ".scss")) ".css")))

;;;###autoload
(define-derived-mode scss-mode css-mode "Scss"
Expand Down

0 comments on commit ce3c0c2

Please sign in to comment.