[Chicago] Emacs/vim whitespace question

Jonathan Hayward christos.jonathan.hayward at gmail.com
Thu Mar 18 20:47:56 CET 2010


Thank you!

On Thu, Mar 18, 2010 at 2:44 PM, Adam Jenkins <emperorcezar at gmail.com>wrote:

> I use emacs all day ever day for work in Django. In my experience, the
> default emacs mode works quite well.
>
> On Wed, Mar 17, 2010 at 11:20 PM, Jonathan Hayward <
> christos.jonathan.hayward at gmail.com> wrote:
>
>> In vim you want a few settings in your vimrc to handle Python and in
>> particular to avoid annoying behavior. Turning on autoindent alone leaves
>> you subject to a nasty surprise re: significant whitespace. If you edit
>> existing code indented in one part to eight spaces, and append a line below
>> it, vim's default behavior at least in the past has been to indent an
>> "equivalent" equal to one tab, resulting in the Python compiler complaining
>> about not matching a previous indent.
>>
>> Are there any inappropriate behaviors like this in an unconfigured emacs,
>> and if so, could I have appropriate settings material to say "Be nice to
>> Python"?
>>
>> --
>> → Jonathan Hayward, a Senior Web Developer who cares deeply about
>> usability
>> → www.linkedin.com/in/jonathanhayward • jonathan.hayward at pobox.com
>> → Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, PHP,
>> Python, SQL, UI, Unix, Usability, UX, XHTML, XML
>> → With a good interest in the human side of computing and making software
>> and websites a joy to use
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>>
>>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
>


-- 
→ Jonathan Hayward, a Senior Web Developer who cares deeply about usability
→ www.linkedin.com/in/jonathanhayward • jonathan.hayward at pobox.com
→ Ajax, CGI, CMS, CSS, HTML, IA, JSON, JavaScript, LAMP, Linux, Perl, PHP,
Python, SQL, UI, Unix, Usability, UX, XHTML, XML
→ With a good interest in the human side of computing and making software
and websites a joy to use
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20100318/b7806082/attachment.html>


More information about the Chicago mailing list