From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Subject: export literal examples font-lock: ess-mode Date: Fri, 17 Aug 2012 09:23:22 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2MWg-00010E-6c for Emacs-orgmode@gnu.org; Fri, 17 Aug 2012 09:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2MWe-0000HO-DE for Emacs-orgmode@gnu.org; Fri, 17 Aug 2012 09:23:46 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:60887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2MWe-0000HC-93 for Emacs-orgmode@gnu.org; Fri, 17 Aug 2012 09:23:44 -0400 Received: by yenl1 with SMTP id l1so4401099yen.0 for ; Fri, 17 Aug 2012 06:23:43 -0700 (PDT) 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 I write do-files for Stata code in emacs using ESS, which marks up my code and sends it to a comint-mode buffer for evaluation. I'd like to include some source code in an org file, as in the below examle: #+begin_src -n foreach var of varlist _all{ rename `var' new_`var' } #+end_src I have a couple of questions: How can I use ess fontification in this snippet and in the file to which I export? The manual says I "need to specify the name of the major mode," however including "#+begin_src ess -n" results in the following error "org-edit-src-code: No such language mode: nil-mode." I've tried using ess-mode, and anything else I can think of, to no avail. What should I include? Also, assuming I'm able to get the fontification to work, is there a way to customize it for exporting? Finally, org-babel looks tremendously useful. Is there a way to harness it's capabilities for an unsupported language like Stata's? Thanks to everyone who read this through, and in particular to anyone who can help! Paul