[libvirt] [PATCH 3/5] libvirt/qemu - support persistent modification of devices.

Eric Blake eblake at redhat.com
Wed Mar 16 01:31:26 UTC 2011


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   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110315/3cd09804/attachment-0001.sig>


More information about the libvir-list mailing list