Emacs org-mode - format source block -
is possible org-mode utilize indentation rules of specified language? example, if have code below, i'd var x;
indent when nail tab key (just in javascript mode).
#+begin_src javascript function foo() { var x; } #+end_src
i have set (setq org-src-fontify-natively t)
has enabled syntax highlighting, not code formatting.
customize alternative org-src-tab-acts-natively
t
. setting tab works expect in source code block. additional indentation 2 spaces removed if tangle source code block or edit c-'. org-version
8.2.5h
.
emacs org-mode
No comments:
Post a Comment