From: Aaron Ecay <aaronecay@gmail.com>
To: "François Pinard" <pinard@iro.umontreal.ca>, emacs-orgmode@gnu.org
Subject: Re: C-c ' and mail sources
Date: Wed, 13 Nov 2013 13:03:20 -0500 [thread overview]
Message-ID: <87zjp89o2f.fsf@gmail.com> (raw)
In-Reply-To: <87r4akkhj8.fsf@iro.umontreal.ca>
Hello François,
2013ko azaroak 13an, François 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-indentation))
(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.
--
Aaron Ecay
prev parent reply other threads:[~2013-11-13 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-13 5:16 C-c ' and mail sources François Pinard
2013-11-13 8:58 ` Bastien
2013-11-13 18:03 ` Aaron Ecay [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=87zjp89o2f.fsf@gmail.com \
--to=aaronecay@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=pinard@iro.umontreal.ca \
/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).