all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How does align work? (Re: Ini mode)
       [not found] ` <jwv7jpxp0h5.fsf-monnier+gnu.emacs.sources@gnu.org>
@ 2004-10-19 20:34   ` Daniel Pfeiffer
  0 siblings, 0 replies; only message in thread
From: Daniel Pfeiffer @ 2004-10-19 20:34 UTC (permalink / raw)


Saluton,

Stefan Monnier <monnier@iro.umontreal.ca> skribis:

> > http://dapfy.bei.t-online.de/ini-mode.el

> - Have you tried to use the `align' package for alignment (it's part of
> Emacs
>   and should only requie you give it some regexp to allow M-x align RET to
>   work).

What I'm trying to get are two variants for =-pairs, one for :-pairs and one
for space pairs, as follows:

v1 =		value
longv2 =	value
vv3 =		value

v1	= value
longv2	= value
vv3	= value

v1:	value
longv2:	value
vv3:	value

v1	value
longv2	value
vv3	value

Whatever I try (the following shows two spacings I tried alternatively, both
with and without column) gives me odd results:

  (set (make-local-variable 'align-rules-list)
       '((ini-colon
	  (regexp . "\\([ \t]*\\):\\([ \t]*\\)")
	  (group 1 2)
	  (column . 0)
	  (spacing 0 1)
	  (spacing . 0))))

I was thinking I'd need three sections (each with run-if to decide which
apply, Java properties having all three styles).  How would they have to be
formulated?

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

-- 
lerne / learn / apprends / lär dig / ucz się    Esperanto:
                              http://lernu.net/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-19 20:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20041010105616.424c68d1@pfdabpc.inhouse.start.de>
     [not found] ` <jwv7jpxp0h5.fsf-monnier+gnu.emacs.sources@gnu.org>
2004-10-19 20:34   ` How does align work? (Re: Ini mode) Daniel Pfeiffer

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.