Define some CSS alignment rules
This commit is contained in:
parent
191c4714f5
commit
d9b12dc272
1 changed files with 21 additions and 0 deletions
|
@ -925,6 +925,27 @@ from myaethon2.core.decorators import (
|
||||||
(auto-init appt)
|
(auto-init appt)
|
||||||
(auto-init avandu)
|
(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
|
(stante-after auto-complete
|
||||||
(add-to-list 'ac-modes 'slime-repl-mode))
|
(add-to-list 'ac-modes 'slime-repl-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue