From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: C-c ' and mail sources Date: Wed, 13 Nov 2013 13:03:20 -0500 Message-ID: <87zjp89o2f.fsf@gmail.com> References: <87r4akkhj8.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgemh-0003Gl-J4 for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 13:03:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vgemg-0003mP-EK for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 13:03:23 -0500 Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:48346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vgemg-0003lu-0A for emacs-orgmode@gnu.org; Wed, 13 Nov 2013 13:03:22 -0500 Received: by mail-qc0-f177.google.com with SMTP id b10so459361qcw.22 for ; Wed, 13 Nov 2013 10:03:21 -0800 (PST) In-Reply-To: <87r4akkhj8.fsf@iro.umontreal.ca> 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: =?utf-8?Q?Fran=C3=A7ois?= Pinard , emacs-orgmode@gnu.org Hello Fran=C3=A7ois, 2013ko azaroak 13an, Fran=C3=A7ois Pinard-ek idatzi zuen: [...] > I do not know what would be the reasonable way to correct it: preventing > the shifting, or changing how highlighting interpret beginning of lines, > in case of Org? I have the following in my emacs init file to prevent the shifting of python code blocks: #+BEGIN_SRC emacs-lisp (defadvice org-edit-src-exit (around awe-org activate) (let ((org-edit-src-content-indentation org-edit-src-content-indentatio= n)) (when (eq major-mode 'python-mode) (setq org-edit-src-content-indentation 0)) ad-do-it)) #+END_SRC You should be able to adapt this for mail mode by changing the (eg 'major-mode ...) test. Alternatively, if you never want any source blocks to be indented from the left margin, you can customize the org-edit-src-content-indentation variable to 0. --=20 Aaron Ecay