aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-12-02 14:40:23 +0100
committerGravatar Tom Willemse2016-12-02 14:40:23 +0100
commit8ff9929af28fe7650481f29d5d393531fef42477 (patch)
tree7f59da8541a10f4abb8dcbb7c12615d547906efb /emacs/.emacs.d
parent1b439d09a36da09556880287f8b8a3b66e230e8b (diff)
downloadnew-dotfiles-8ff9929af28fe7650481f29d5d393531fef42477.tar.gz
new-dotfiles-8ff9929af28fe7650481f29d5d393531fef42477.zip
Add SCSS error regexp to compilation buffer
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/init/oni-css-mode-init.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/oni-css-mode-init.org b/emacs/.emacs.d/init/oni-css-mode-init.org
index c683af0..e5531e3 100644
--- a/emacs/.emacs.d/init/oni-css-mode-init.org
+++ b/emacs/.emacs.d/init/oni-css-mode-init.org
@@ -27,3 +27,21 @@ as pretty colors.
#+BEGIN_SRC emacs-lisp
(add-hook 'css-mode-hook 'rainbow-mode)
#+END_SRC
+
+Add the scssc compiler's error message output to the compilation error
+regexps.
+
+#+BEGIN_SRC emacs-lisp
+ (eval-when-compile (require 'compile))
+
+ (with-eval-after-load 'compile
+ (defvar oni:scss-error-regexp
+ (rx (and bol
+ (zero-or-more space) "on line "
+ (group (one-or-more digit)) " of "
+ (group (one-or-more (or word punct (syntax symbol))))
+ eol)))
+
+ (add-to-list 'compilation-error-regexp-alist
+ (list oni:scss-error-regexp 2 1 nil 2 2)))
+#+END_SRC