From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernd Weiss Subject: [org-babel] Using the power of ESS inside an R source code block Date: Sun, 24 Oct 2010 05:44:32 -0400 Message-ID: <4CC40000.3090508@uni-koeln.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=46908 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9x86-0001nD-Kx for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 05:44:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9x85-0000zT-7s for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 05:44:42 -0400 Received: from smtp-out.rrz.uni-koeln.de ([134.95.19.53]:33173) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9x84-0000zJ-SO for emacs-orgmode@gnu.org; Sun, 24 Oct 2010 05:44:41 -0400 Received: from smtp-auth.rrz.uni-koeln.de (smtp-auth.rrz.uni-koeln.de [134.95.19.93]) by smtp-out.rrz.uni-koeln.de (8.13.8/8.13.8) with ESMTP id o9O9ibMH011578 for ; Sun, 24 Oct 2010 11:44:37 +0200 Received: from [10.0.0.2] ([199.44.252.34]) (authenticated as user ahf34 using CRAM-MD5 bits=0) by smtp-auth.uni-koeln.de (8.13.8/8.13.8) with ESMTP id o9O9iYPL027455 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sun, 24 Oct 2010 11:44:36 +0200 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: emacs-orgmode@gnu.org Dear all, Yesterday, I spent some time (re-)discovering the power of org-babel and R. Everything works well but there is one issue that I find somewhat annoying (I apologise if this word is too rude). As a long-time ESS user I wish that I could use things like ESS syntax highlighting, indentation or some keybindings (e.g. for "<-") inside an R source code block. However, with respect to an e-mail from Eric Schulte http://www.mail-archive.com/emacs-orgmode@gnu.org/msg22301.html (or this one: https://stat.ethz.ch/pipermail/ess-help/2009-September/005544.html ) this seems to be a feature wich is hard to realise inside org-babel. Is this (still) correct? Or is it a problem with my installation/initialisation of org-mode/org-babel?[1] Thanks, Bernd [1] This is the org-mode part in my .emacs: ;; The following lines are always needed. Choose your own keys. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (global-font-lock-mode 1) ; for all buffers (add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only ;;(setq org-ditaa-jar-path "D:/programme/emacs/site-lisp/org-mode/contrib/scripts/ditaa.jar") (setq org-directory "e:/projects/org/") (setq org-confirm-babel-evaluate nil) ;; active Babel languages (setq org-babel-load-languages (quote ((emacs-lisp . t) (R . t) (python . t) ) ) ) (setq org-src-fontify-natively t)