* little annoyance
@ 2012-05-24 14:21 Julian Burgos
2012-05-24 15:24 ` Jason Dunsmore
0 siblings, 1 reply; 2+ messages in thread
From: Julian Burgos @ 2012-05-24 14:21 UTC (permalink / raw)
To: emacs-orgmode
Dear list:
Is there any way to stop org-mode from adding blank spaces on the left
margin of an R source code block when returning from editing in ESS
mode? Here is an example:
1) I create my org mode file with an R source code block:
---------------------start org mode-------------------
* Trial
#+begin_src R
plot(1:10)
#+end_src
---------------------end org mode-------------------
2) I do Ctrl-' to switch to ESS mode, and then again to go back to org mode.
3) The source code block has new spaces'
---------------------start org mode-------------------
* Trial
#+begin_src R
plot(1:10)
#+end_src
---------------------end org mode-------------------
This is mildly annoying because I edit the source code blocks both in
ESS and in org-mode, and the code gets misaligned. Any ideas?
Many thanks,
Julian
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: little annoyance
2012-05-24 14:21 little annoyance Julian Burgos
@ 2012-05-24 15:24 ` Jason Dunsmore
0 siblings, 0 replies; 2+ messages in thread
From: Jason Dunsmore @ 2012-05-24 15:24 UTC (permalink / raw)
To: Julian Burgos; +Cc: emacs-orgmode
Hi Julian,
You can change org-edit-src-content-indentation to keep indentation from
being added:
(setq org-edit-src-content-indentation 0)
Regards,
Jason
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-24 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24 14:21 little annoyance Julian Burgos
2012-05-24 15:24 ` Jason Dunsmore
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).