[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: what is 'outline mode'?

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-11-01 00:27:38 CET

On Thu, Oct 31, 2002 at 03:51:31PM -0600, Scott Lamb wrote:
>...
> An alternative might be to suggest .vimrc settings that apply only to
> the Subversion directory. I have something like this:
>
> fun GnuStyle()
> setlocal cinoptions={.5s,:.5s,+.5s,t0,g0,^-2,e-2,n-2,p2s,(0,=.5s
> setlocal formatoptions=croql cindent sw=4 ts=8 expandtab
> endfun
> autocmd BufRead,BufNewFile */subversion/*.[ch] call GnuStyle()
>
> the GnuStyle function stolen from <http://www.zellner.org/vim/vimrc>.
>
> That's not as good for special cases like the outline file. There, I
> think embedding the modelines would be best.

This approach is much better than embedding. In fact, I would prefer a
similar approach for the Emacs support. I really don't like having to refer
to svn-dev.el in every single file. I also am not comfortable enabling a
switch to stop asking me whether it should be loaded or not (don't want an
emacs virus! :-), so each time I visit a file, I get asked.

Karl: is there a "visit file" hook of some kind? Can we use that to set the
modes, rather than the auto loading stuff?

Cheers,
-g

p.s. "fun GnuStyle()" ... huh? there's nothing fun about the GNU style...
damned space-before-paren and all that rubbish... :-)

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 1 00:27:10 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.