emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo Alekseyev <dnquark@gmail.com>
To: "J. David Boyd" <david@adboyd.com>
Cc: Emacs orgmode <emacs-orgmode@gnu.org>
Subject: Re: Babel blocks not indented
Date: Fri, 10 May 2013 14:07:02 -0700	[thread overview]
Message-ID: <CADzxs1=E+et+2oE82pYpGCrDqGo9V2O1exi=9O-1mj2Eykk1Tg@mail.gmail.com> (raw)
In-Reply-To: <87fvxvh5md.fsf@adboyd.com>

[-- Attachment #1: Type: text/plain, Size: 1491 bytes --]

On Thu, May 9, 2013 at 8:32 PM, J. David Boyd <david@adboyd.com> wrote:

> Julien Cubizolles <j.cubizolles@free.fr> writes:
>
> > Eric Schulte <schulte.eric@gmail.com> writes:
> >
> >> Julien Cubizolles <j.cubizolles@free.fr> writes:
> >>
> >>> I'm new to babel and I'm experiencing a strange problem. A
> >>> src_block created with "<s TAB" is not indented as the heading it's
> >>> in. Here is an example:
> >>>
> >>
> >> Try "TAB <s TAB" instead.
> >
> > That's what I was doing but it seems the problem lies with
> > org-indent-mode and is also present with regular text. Apparently,
> > disabling and re-enabling seems to fix it. I'll investigate further.
> >
> > Julien.
>
> I change my mode to whatever my src is in when I want indenting to work
> properly, then change it back when I want to see it as an org file again.
>
> Dave
>
>
>
I've brought this up before, but I think there's value in SRC blocks /not/
being indented, and in fact, I would love it if there were a way to make
the contents of the SRC blocks /not/ be indented (as opposed to the default
2 space offset).   Whitespace often matters, particularly when working with
Python, and every now and then I find myself having to manually delete the
extra spacing when pasting code into the Python interpreter.  Other times I
want to paste code snippets from SRC blocks into source files -- again,
indentation gets in the way.  I agree that it's aesthetically appealing,
but my workflow would be easier without it.

--Leo

[-- Attachment #2: Type: text/html, Size: 2275 bytes --]

  reply	other threads:[~2013-05-10 21:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-07 17:11 Babel blocks not indented Julien Cubizolles
2013-05-07 18:19 ` Eric Schulte
2013-05-07 21:48   ` Julien Cubizolles
2013-05-10  3:32     ` J. David Boyd
2013-05-10 21:07       ` Leo Alekseyev [this message]
2013-05-10 22:32         ` Nick Dokos
2013-05-13  9:31           ` Leo Alekseyev
2013-05-13  9:53       ` Andreas Röhler

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='CADzxs1=E+et+2oE82pYpGCrDqGo9V2O1exi=9O-1mj2Eykk1Tg@mail.gmail.com' \
    --to=dnquark@gmail.com \
    --cc=david@adboyd.com \
    --cc=emacs-orgmode@gnu.org \
    /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).