[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic code formatting?
From: |
Marko Rauhamaa |
Subject: |
Re: Automatic code formatting? |
Date: |
Sat, 16 Aug 2014 15:50:36 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Taylan Ulrich Bayirli/Kammer <address@hidden>:
> Bernardo Ezequiel Contreras <address@hidden> writes:
>
>> i would like to know how do you automatically format your code? cause
>> i have no idea, and i don't want to do it manually. is there a emacs
>> mode, command or something for that?
>
> In Emacs, scheme-mode with Paredit (or SmartParens I guess), using C-j
> for newlines instead of RET, using 'fill-column-indicator' AKA
> 'fci-mode', and/or 'auto-fill-mode' to keep me wary of the column
> limit, using M-; to insert comments. Paragraphs of comments and other
> plain text can be formatted with M-q to conform to the column limit.
Emacs does everything out of the box. If you open a scheme file, TAB
indents the line "correctly" and C-M-\ reindents a region of code.
If you don't like the builtin style, you can customize it to your
heart's content.
Marko