Add SCSS error regexp to compilation buffer
This commit is contained in:
parent
1b439d09a3
commit
8ff9929af2
1 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue