From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: BEGIN_SRC Date: Thu, 20 Aug 2009 18:41:05 -0400 Message-ID: <871vn6m7lq.fsf@gollum.intra.norang.ca> References: <87bpmanpld.wl%ks@mocker.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MeGJm-0004L6-I1 for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 18:41:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MeGJj-0004I8-Qz for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 18:41:14 -0400 Received: from [199.232.76.173] (port=43511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeGJj-0004I0-Mp for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 18:41:11 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:51440) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MeGJi-0004J1-Uy for emacs-orgmode@gnu.org; Thu, 20 Aug 2009 18:41:11 -0400 In-Reply-To: <87bpmanpld.wl%ks@mocker.org> (Kyle Sexton's message of "Thu\, 20 Aug 2009 16\:27\:10 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Kyle Sexton Cc: org-mode Kyle Sexton writes: > Is it possible to have BEGIN_SRC use the mode for the programming > language within it's block? > > For example: > > #+BEGIN_SRC emacs-lisp > ; Treat this block with emacs-lisp-mode > #+END_SRC > > My first thought is that this would require mmm-mode. Anyone doing > something similar? You probably know this already but just in case... you can use C-c ' inside the block and it switches to that mode with just the contents of the block. C-c ' gets out again. -Bernt