all messages for Emacs-related lists mirrored at yhetil.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

* Re: align.el: css-mode
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John Wiegley @ 2005-01-14  1:34 UTC (permalink / raw)


Karl Chen <quarl@cs.berkeley.edu> writes:

> 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))))
> +

Sounds reasonable to me.

John

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

* Re: align.el: css-mode
  2005-01-14  1:34 ` John Wiegley
@ 2005-02-13 22:43   ` Karl Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Karl Chen @ 2005-02-13 22:43 UTC (permalink / raw)



Hello John et al,

My copyright assignment to FSF is on file now.

Here is a copy of the patch I suggested on 2005-01-13 for adding
align support for CSS.


--- .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-02-13 14:38

^ 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.