summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-02-18 22:41:58 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-02-18 22:41:58 +0100
commit961c8d8066c0ef180ecc49adc01d9885de0e0ef1 (patch)
treed24beb1305b572ee72bcd773d4c5ba00bd9154cc
parent3db65baa8a71e71fd04207071cdae61899784923 (diff)
org: Set org-edit-src-content-indentation globally.
-rw-r--r--init.org7
1 files changed, 6 insertions, 1 deletions
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: