[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-dev
Subject:    Re: what is 'outline mode'?
From:       Greg Stein <gstein () lyra ! org>
Date:       2002-10-31 23:27:38
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic