emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Help: Getting ESS key binding to work with a R code block in org-mode
@ 2010-11-21 19:11 Sunny Srivastava
  2010-11-21 20:17 ` Dan Davison
  0 siblings, 1 reply; 3+ messages in thread
From: Sunny Srivastava @ 2010-11-21 19:11 UTC (permalink / raw)
  To: emacs-orgmode mailing list


[-- Attachment #1.1: Type: text/plain, Size: 1156 bytes --]

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:

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

[-- Attachment #1.2: Type: text/html, Size: 1387 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help: Getting ESS key binding to work with a R code block in org-mode
  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
  2010-11-21 20:50   ` Sunny Srivastava
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Davison @ 2010-11-21 20:17 UTC (permalink / raw)
  To: Sunny Srivastava; +Cc: emacs-orgmode mailing list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help: Getting ESS key binding to work with a R code block in org-mode
  2010-11-21 20:17 ` Dan Davison
@ 2010-11-21 20:50   ` Sunny Srivastava
  0 siblings, 0 replies; 3+ messages in thread
From: Sunny Srivastava @ 2010-11-21 20:50 UTC (permalink / raw)
  To: Dan Davison; +Cc: emacs-orgmode mailing list


[-- Attachment #1.1: Type: text/plain, Size: 2749 bytes --]

Hello Dan:
Thank you. I knew it was something silly like that ..

C-c ' is the right key and not C-c ` .. (I didn't notice the difference :-(
)

Everything works perfectly normal now.

Actually, I have started using Eric's fork of emacs-starter-kit and it has
done wonders to my productivity with Emacs. The kit activates R by default
(if I understood the documentation correctly).

Thanks,
S.

PS: If you are the same Dan as on worg, thank you for drift.org ... it has
helped me a lot in writing my paper.

On Sun, Nov 21, 2010 at 3:17 PM, Dan Davison <dandavison7@gmail.com> wrote:

> 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
>

[-- Attachment #1.2: Type: text/html, Size: 3714 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-21 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-11-21 20:50   ` Sunny Srivastava

Code repositories for project(s) associated with this 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).