[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Indenting source code blocks in lists
From: |
Phil (Philip) Mason |
Subject: |
Re: [O] Indenting source code blocks in lists |
Date: |
Wed, 25 Jan 2012 09:42:20 +0000 |
> But let us assume that I already have a source block, and it is not
> indented correctly; what is the easy way to indent this block in a list?
If you indent just the #+BEGIN_SRC line and then use C-c ' to open the source
editor and C-c ' to close it again it indents all source to the level of the
BEGIN_SRC line.
For example
#+BEGIN_SRC emacs-lisp
(message (number-to-string
(- (point)
10))
#+END_SRC
Becomes
#+BEGIN_SRC emacs-lisp
(message (number-to-string
(- (point)
10))
#+END_SRC
Is that closer to what you wanted?
All the best
Phil