From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Phil (Philip) Mason" Subject: Re: Indenting source code blocks in lists Date: Wed, 25 Jan 2012 09:42:20 +0000 Message-ID: <2D76BBD878DB8B49BBE309F15526B38EA4C6@SJEXCHMB06.corp.ad.broadcom.com> References: <878vkws4it.fsf@syk.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpzOI-0003Sl-Bl for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:43:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpzOH-0002VI-I8 for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:43:42 -0500 Received: from mms2.broadcom.com ([216.31.210.18]:1928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpzOH-0002V2-8b for emacs-orgmode@gnu.org; Wed, 25 Jan 2012 04:43:41 -0500 In-Reply-To: <878vkws4it.fsf@syk.fi> Content-Language: en-US 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: "emacs-orgmode@gnu.org" > 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 sour= ce 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)=20 10)) #+END_SRC Becomes #+BEGIN_SRC emacs-lisp (message (number-to-string (- (point)=20 10)) #+END_SRC Is that closer to what you wanted? All the best Phil