Re: [O] Indentation of org-mode code

2011-04-20 Thread Bernt Hansen
Manuel Giraud  writes:

> Bernt Hansen  writes:
>
>> For indenting lisp code I highlight the region to indent and C-M-\
>> (which is M-x indent-region)
>
> Yes I know (and do). But if you try this on org-html.el, for example,
> big chunks of code are indented differently than they are now. So I
> thought that there was some convention for indenting org-mode code.

Not that I'm aware of - but you should refrain from making unnecessary
whitespace changes to the code base even if the existing code is
incorrectly formatted.  Reformat the stuff you touch but don't make
copious whitespace changes - that just hides what you changed.

Regards,
Bernt



Re: [O] Indentation of org-mode code

2011-04-20 Thread Manuel Giraud
Bernt Hansen  writes:

> For indenting lisp code I highlight the region to indent and C-M-\
> (which is M-x indent-region)

Yes I know (and do). But if you try this on org-html.el, for example,
big chunks of code are indented differently than they are now. So I
thought that there was some convention for indenting org-mode code.

-- 
Manuel Giraud



Re: [O] Indentation of org-mode code

2011-04-20 Thread Bernt Hansen
Manuel Giraud  writes:

> Hi,
>
> What are the good settings to indent the org-mode code? I have searched
> through the mailing list and worg but can't find an answer.
>
> I'm asking because while working on org-html.el at one point I reindent
> the whole buffer and end up with a mess (indenting with "emacs -Q" can't
> fix this).

For indenting lisp code I highlight the region to indent and C-M-\
(which is M-x indent-region)

-Bernt



[O] Indentation of org-mode code

2011-04-20 Thread Manuel Giraud

Hi,

What are the good settings to indent the org-mode code? I have searched
through the mailing list and worg but can't find an answer.

I'm asking because while working on org-html.el at one point I reindent
the whole buffer and end up with a mess (indenting with "emacs -Q" can't
fix this).

Best,
-- 
Manuel Giraud