From: Bernt Hansen <bernt@norang.ca>
To: Manuel Giraud <manuel.giraud@univ-nantes.fr>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Indentation of org-mode code
Date: Wed, 20 Apr 2011 11:45:53 -0400 [thread overview]
Message-ID: <87liz5gc3y.fsf@norang.ca> (raw)
In-Reply-To: <874o5tq8fy.fsf@univ-nantes.fr> (Manuel Giraud's message of "Wed, 20 Apr 2011 16:54:57 +0200")
Manuel Giraud <manuel.giraud@univ-nantes.fr> writes:
> Bernt Hansen <bernt@norang.ca> 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
prev parent reply other threads:[~2011-04-20 17:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 14:20 Indentation of org-mode code Manuel Giraud
2011-04-20 14:40 ` Bernt Hansen
2011-04-20 14:54 ` Manuel Giraud
2011-04-20 15:45 ` Bernt Hansen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87liz5gc3y.fsf@norang.ca \
--to=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=manuel.giraud@univ-nantes.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).