add org env to source blocks

This commit is contained in:
ndwarshuis 2019-05-20 10:38:04 -04:00
parent d536595c31
commit 0c2aaef995
1 changed files with 3 additions and 1 deletions

View File

@ -1100,7 +1100,9 @@ Enable shortcuts for embedding code in org text bodies.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-src-window-setup 'current-window (setq org-src-window-setup 'current-window
org-src-fontify-natively t org-src-fontify-natively t
org-edit-src-content-indentation 0) org-edit-src-content-indentation 0
org-babel-load-languages '((emacs-lisp . t)
(org . t)))
(add-to-list 'org-structure-template-alist (add-to-list 'org-structure-template-alist
'("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC")) '("el" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))