On Fri, May 10, 2013 at 3:32 PM, Nick Dokos <ndo...@gmail.com> wrote:

> Leo Alekseyev <dnqu...@gmail.com> writes:
>
> > 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
> >
>
> Does this help?
>
> ,----
> | org-edit-src-content-indentation is a variable defined in `org-src.el'.
> | Its value is 2
> |
> | Documentation:
> | Indentation for the content of a source code block.
> | This should be the number of spaces added to the indentation of the
> #+begin
> | line in order to compute the indentation of the block content after
> | editing it with M-x org-edit-src-code.  Has no effect if
> | `org-src-preserve-indentation' is non-nil.
> `----
>
> --
> Nick
>
>
> Yes! I had no idea this existed!  I could've sworn I've asked about this
before and came up empty :/

Reply via email to