emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: Sunny Srivastava <research.baba@gmail.com>
Cc: emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Help: Getting ESS key binding to work with a R code block in org-mode
Date: Sun, 21 Nov 2010 20:17:45 +0000	[thread overview]
Message-ID: <87y68mctxy.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTimwuPOWCUK0NGh9FpEd2J6xU7eT4JWCjMjoysG9@mail.gmail.com> (Sunny Srivastava's message of "Sun, 21 Nov 2010 14:11:47 -0500")

Sunny Srivastava <research.baba@gmail.com> writes:

> Hello Org-moders,
> I have been a very happy ESS user so far. Recently, I was introduced to
> org-mode and I am still a beginner.
>
> I am trying to write a research paper using the literate programming style
> of org-babel-R, instead of Sweave, and the journey has been OK so far. I
> have a very lame question related to this, so please bear with me.
>
> I am used to the ESS key-bindings, however they don't work properly in the
> code block (begin_src R ... end_src). I googled and found that it is
> recommended to use C-c ` to edit the source code in an Org-tmp buffer.
> However, there are a few issues related to this:

Hi Sunny,

A couple of possibilities to solve your current problems:

Firstly, the key combination is C-c '  not   C-c `

i.e., that character is a straight single quote.

Secondly, have you activated R as an Org-babel language?

See section 14.7 of the manual. You can do it with customize, or you can
do it by adding some emacs-lisp to your .emacs file. E.g. the following
activates emacs-lisp and R:

(org-babel-do-load-languages
      'org-babel-load-languages
      '((emacs-lisp . t)
        (R . t)))

Don't hesitate to get back to the list if you have further questions.

Dan


>
> 1. Let's say I have a code block which contains some code in it. When I do
> C-c ` a temporary buffer opens up but it doesn't include the R code that was
> in the code block.
> 2. The temporary buffer for editing R code doesn't associate itself with
> ESS, ie the key-bindings don't work. (I am addicted to the "smart _" key
>  binding of ESS as well I am facing problems indenting the code using C-M-\)
>
> Any help or pointers is much appreciated.
>
> Thanks to Eric and other developers for implementing such a great idea.
>
>
> Version: 7.3 (release_7.3-89-g97f4c
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-11-21 20:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 19:11 Help: Getting ESS key binding to work with a R code block in org-mode Sunny Srivastava
2010-11-21 20:17 ` Dan Davison [this message]
2010-11-21 20:50   ` Sunny Srivastava

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y68mctxy.fsf@gmail.com \
    --to=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=research.baba@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).