discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using vim to contribute to GNUstep


From: Philippe Roussel
Subject: Re: Using vim to contribute to GNUstep
Date: Tue, 15 May 2012 11:29:10 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hi,

Le 15/05/2012 09:46, Riccardo Mottola a écrit :
> Hi,
> 
> Ivan Vučica wrote:
>> Hi all!
>>
>> Does anyone have a set of settings for vim's cindent that
>> automatically uses as correct indentation style as possible?
>>
>> What code editors do you use to contribute to the core GNUstep?
> I use Emacs because it is the only thing that formats the code "right"
> including the weird tab/spaces to indent. Right in the sense of GNU
> coding style. I use Emacs even on the mac instead of XCode. Emacs has a
> nice obj-c support, including reindentation of existing code and
> dedicated obj-c menu. It works for me only for -m files and not -h, but
> that is a minor drawback

By default .h file are edited with c-mode, which makes sense. When you
load a .h file, just do 'alt-x objc-mode' and you're good to go. Or put
something like

/* emacs buffer mode hint -*- objc -*- */

as the first line of your objc .h files.

Philippe

> The only drawback is that I am a VI guy. Emacs doesn't even have a
> decent copy&paste that integrates with the host... but I never got VI
> really indent smooth as Emacs.
> 
> Riccardo
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep




reply via email to

[Prev in Thread] Current Thread [Next in Thread]