On 03/15/2011 07:28 PM, Hu Tao wrote:
>  
>>>> +
>>>> +static int qemuDomainModifyDevicePersistent(virDomainPtr dom,
>>>>                                          const char *xml,
>>>
>>> Indentation is not consistent.
>>>
>> ok.
> 
> FYI, if you use vim as your editor, the following configuration can save
> you a lot of time:
> 
> set autoindent
> set smartindent
> set cindent
> set tabstop=4
> set shiftwidth=4
> set expandtab
> set cinoptions=(0,:0,l1,t0
> 
> Just select the code snippet and press `=' will indent the code nicely.

We already have .dir-locals.el to auto-set indentation for emacs users;
does vim support a directory-local configuration file that would be
worth checking into libvirt.git to make vim auto-indent with consistent
rules for all files found in the libvirt directory tree?  [If you
haven't guessed, I'm not a vim user]

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to