Define some CSS alignment rules

This commit is contained in:
Tom Willemse 2015-09-03 15:57:48 +02:00
parent 191c4714f5
commit d9b12dc272

View file

@ -925,6 +925,27 @@ from myaethon2.core.decorators import (
(auto-init appt)
(auto-init avandu)
(stante-after align
;; Keep these in order. They are each added to the _front_ of the
;; list and are applied in order. Changing their order will change
;; the results.
(add-to-list 'align-rules-list
'(css-closing-brace
(regexp . "\\([ \t]*\\)}$")
(group . (1))
(modes . '(scss-mode css-mode))))
(add-to-list 'align-rules-list
'(css-colons
(regexp . "[:;]\\([ \t]*\\)")
(group . (1))
(modes . '(scss-mode css-mode))
(repeat . t)))
(add-to-list 'align-rules-list
'(css-opening-brace
(regexp . "^[ \t]*[#.a-zA-Z0-9, &-]*[a-zA-Z0-9]\\([ \t]*\\){.*")
(group . (1))
(modes . '(scss-mode css-mode)))))
(stante-after auto-complete
(add-to-list 'ac-modes 'slime-repl-mode))