From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Alekseyev Subject: Re: Babel blocks not indented Date: Mon, 13 May 2013 02:31:53 -0700 Message-ID: References: <87d2t24swa.fsf@free.fr> <878v3qsldc.fsf@gmail.com> <87wqra31ie.fsf@free.fr> <87fvxvh5md.fsf@adboyd.com> <87d2syo49g.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=14dae9cfc706eae88204dc962f3e Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubp6t-0006s1-6s for emacs-orgmode@gnu.org; Mon, 13 May 2013 05:32:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ubp6p-0008Mv-VQ for emacs-orgmode@gnu.org; Mon, 13 May 2013 05:31:59 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:37658) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ubp6p-0008Mi-OJ for emacs-orgmode@gnu.org; Mon, 13 May 2013 05:31:55 -0400 Received: by mail-lb0-f179.google.com with SMTP id d10so6149108lbj.10 for ; Mon, 13 May 2013 02:31:54 -0700 (PDT) In-Reply-To: <87d2syo49g.fsf@pierrot.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: Emacs orgmode --14dae9cfc706eae88204dc962f3e Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 10, 2013 at 3:32 PM, Nick Dokos wrote: > Leo Alekseyev 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 :/ --14dae9cfc706eae88204dc962f3e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

= On Fri, May 10, 2013 at 3:32 PM, Nick Dokos <ndokos@gmail.com> wrote:
Leo Alekseyev <dnquark@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 op= posed
> to the default 2 space offset).=A0=A0 Whitespace oft= en 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.=A0 Other times I want to paste code
> snippets from SRC blocks into source files -- again, indentation gets<= br> > in the way.=A0 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 #+beg= in
| line in order to compute the indentation of the block content after
| editing it with M-x org-edit-src-code. =A0Has no effect if
| `org-src-preserve-indentation' is non-nil.
`----

--
Nick


Yes! I had no idea this existed!=A0 I coul= d've sworn I've asked about this before and came up empty :/

--14dae9cfc706eae88204dc962f3e--