Is it possible to get org-mode to use indentation rules of the specified language? For example, if I have the code below, I'd like var x; to indent properly when I hit the tab key (just as it would in javascript mode).
#+BEGIN_SRC javascript
function foo() {
var x;
}
#+END_SRC
I have set (setq org-src-fontify-natively t) which has enabled syntax highlighting, but not code formatting.
C-'. Is this no option for you? - Tobiasorg-src-fontify-nativelytotindentation works, but after indentation point jumps back to the first line of the source block. org-version gives8.2.5h. - Tobiasorg-src-tab-acts-natively. See the answer below. The jumping of the point was caused by my customization. The indentation works if I start emacs with the option-Q. - Tobias