diff options
author | Tom Willemse | 2015-09-03 15:57:48 +0200 |
---|---|---|
committer | Tom Willemse | 2015-09-03 15:57:48 +0200 |
commit | d9b12dc272d950d9be444ca20f2d2baaed38b240 (patch) | |
tree | 417c3ae9c2531828c32604cfe90585ccabbe5871 | |
parent | 191c4714f5fdbd339fd9957751fecd91e0de7fe0 (diff) | |
download | dotfiles-d9b12dc272d950d9be444ca20f2d2baaed38b240.tar.gz dotfiles-d9b12dc272d950d9be444ca20f2d2baaed38b240.zip |
Define some CSS alignment rules
-rw-r--r-- | emacs/.emacs.d/init.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 52fc40d..49e5579 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -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)) |