From 961c8d8066c0ef180ecc49adc01d9885de0e0ef1 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 18 Feb 2017 22:41:58 +0100 Subject: org: Set org-edit-src-content-indentation globally. --- init.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 85536ea..2d895b4 100644 --- a/init.org +++ b/init.org @@ -522,6 +522,12 @@ Org mode is an excellent environment for literate programming through Babel. He (require 'ob-R) #+END_SRC +After editing source snippets with =C-c '= please don’t indent everything with two spaces. Just leave things as I edited them. + +#+BEGIN_SRC elisp +(setq org-edit-src-content-indentation 0) +#+END_SRC + All of this should be loaded lazily. #+BEGIN_SRC elisp :noweb-ref org-mode-lazy @@ -1569,6 +1575,5 @@ Having defined named code blocks in the sections above we can finally put them a * Variables :noexport: # Local Variables: -# org-edit-src-content-indentation: 0 # eval: (add-hook 'org-babel-post-tangle-hook (lambda nil (byte-compile-file "~/.emacs.d/init.el"))) # End: -- cgit v1.2.3