On Mar 9, 2014, at 19:58, Michael Weylandt <michael.weyla...@gmail.com> wrote:

> On Mar 9, 2014, at 19:22, Martin Schöön <martin.sch...@gmail.com> wrote:
>> What you don't get as far as I can see is code completion,
>> syntax highlighting etc since Emacs is doing this with
>> respect to Orgmode and not the programming language you
>> use.
> 
> Put 
> 
> (setq org-src-fontify-natively t)
> 
> In your ~/.emacs or ~/.emacs.d/init.el file for syntax highlighting. 
> 
> To get the 'regular' code editing, move point into a BEGIN_SRC block and type 
> "C-c ' " (Control-C followed by single quote). That will give you your normal 
> python setup in a sub-buffer. Getting Python autocompletion in Emacs is a bit 
> tricky, but there are many options. 

For Python, you'll also want

(setq org-src-preserve-indentation t)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to