]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yaml: set indent-offset @work.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 4 Mar 2016 14:45:37 +0000 (15:45 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Fri, 4 Mar 2016 14:45:37 +0000 (15:45 +0100)
bba.org

diff --git a/bba.org b/bba.org
index 2bcf666c2590f0361861915d73c67d9e4bbd7568..163229c03fcc06603eaf024b848a7b3fd48120d2 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -599,11 +599,15 @@ Use [[http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example][orgtbl]] t
 #+END_SRC
 
 * yaml mode
-#+BEGIN_SRC emacs-lisp
-  ;; load yaml-mode
-  ;; (require 'yaml-mode)
-  ;; (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
 
+Adjust indentation at work.
+
+#+BEGIN_SRC emacs-lisp
+    ;; load yaml-mode
+    ;; (require 'yaml-mode)
+    ;; (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
+  (if (equal "work" (getenv "SYSENV"))
+      (setq yaml-indent-offset 4))
 #+END_SRC
 
 * htmlize