]> git.eshelyaron.com Git - emacs.git/commitdiff
2005-03-07 Karl Chen <quarl@cs.berkeley.edu>
authorJohn Wiegley <johnw@newartisans.com>
Tue, 8 Mar 2005 03:59:54 +0000 (03:59 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Tue, 8 Mar 2005 03:59:54 +0000 (03:59 +0000)
* align.el (align-rules-list): Added an alignment rule for CSS
declarations (applies to css-mode and html-mode buffers).

lisp/ChangeLog
lisp/align.el

index df930a970d7060aefc12d167b5ca6531d0dfa09c..4dc60b0fb9fd850e8976e26a9fe000bd19964fb1 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-07  Karl Chen  <quarl@cs.berkeley.edu>
+
+       * align.el (align-rules-list): Added an alignment rule for CSS
+       declarations (applies to css-mode and html-mode buffers).
+
 2005-03-07  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * emacs-lisp/debug.el (debug-on-entry-1): Fix handling of macros.
index 5e739c8f7c03ef8b3c2c06194fbb692751c74ea7..5238a75807d7b10af85188a37820b94096726937 100644 (file)
@@ -466,13 +466,13 @@ The possible settings for `align-region-separate' are:
      (repeat   . t)
      (modes    . align-c++-modes)
      (run-if   . ,(function (lambda () current-prefix-arg))))
-;      (valid
-;       . ,(function
-;        (lambda ()
-;          (memq (caar (c-guess-basic-syntax))
-;                '(brace-list-intro
-;                  brace-list-entry
-;                  brace-entry-open))))))
+                                       ;      (valid
+                                       ;       . ,(function
+                                       ;         (lambda ()
+                                       ;           (memq (caar (c-guess-basic-syntax))
+                                       ;                 '(brace-list-intro
+                                       ;                   brace-list-entry
+                                       ;                   brace-entry-open))))))
 
     ;; With a prefix argument, comma delimiter will be aligned.  Since
     ;; perl-mode doesn't give us enough syntactic information (and we
@@ -525,11 +525,11 @@ The possible settings for `align-region-separate' are:
      (regexp   . "\\(\\s-*\\)\\\\$")
      (modes    . align-c++-modes)
      (column   . c-backslash-column))
-;      (valid
-;       . ,(function
-;        (lambda ()
-;          (memq (caar (c-guess-basic-syntax))
-;                '(cpp-macro cpp-macro-cont))))))
+                                       ;      (valid
+                                       ;       . ,(function
+                                       ;         (lambda ()
+                                       ;           (memq (caar (c-guess-basic-syntax))
+                                       ;                 '(cpp-macro cpp-macro-cont))))))
 
     (basic-line-continuation
      (regexp   . "\\(\\s-*\\)\\\\$")
@@ -578,7 +578,12 @@ The possible settings for `align-region-separate' are:
      (justify  . t)
      (run-if   . ,(function
                   (lambda ()
-                    (eq '- current-prefix-arg))))))
+                    (eq '- current-prefix-arg)))))
+
+    (css-declaration
+     (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;")
+     (group . (1))
+     (modes . '(css-mode html-mode))))
   "*A list describing all of the available alignment rules.
 The format is: