unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* align.el: css-mode
@ 2005-01-14  0:15 Karl Chen
  2005-01-14  1:34 ` John Wiegley
  0 siblings, 1 reply; 3+ messages in thread
From: Karl Chen @ 2005-01-14  0:15 UTC (permalink / raw)



Hi, I suggest the following patch to support aligning CSS
declarations.


--- .backup/align.el.~1~        2003-09-01 08:45:04.000000000 -0700
+++ align.el    2005-01-13 16:11:35.000000000 -0800
@@ -578,7 +578,13 @@
      (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:
 


-- 
Karl 2005-01-13 16:13

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-13 22:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14  0:15 align.el: css-mode Karl Chen
2005-01-14  1:34 ` John Wiegley
2005-02-13 22:43   ` Karl Chen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).