about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-12-11 02:17:49 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-12-11 02:19:07 +0100
commit2850ee4c74295a9d4b2868e56f4645aac830e888 (patch)
tree8880c9063b9f144eaae93c369e74190627ffe8b6
parent0eb21ef5d08609287508cf3fb9e967f7fe7c39df (diff)
programs/vim: Indent docbook files with 2 spaces.
Having 4 spaces indentation for docbook files is going to get a bit too
far to the right.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--modules/user/aszlig/programs/vim/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/aszlig/programs/vim/default.nix b/modules/user/aszlig/programs/vim/default.nix
index c42c11f5..cb6149fe 100644
--- a/modules/user/aszlig/programs/vim/default.nix
+++ b/modules/user/aszlig/programs/vim/default.nix
@@ -324,6 +324,7 @@ let
     au BufNewFile,BufRead *.html set tabstop=4|set shiftwidth=4|set expandtab
     au FileType python set textwidth=79
     au FileType gitcommit set textwidth=72
+    au FileType docbk set tabstop=2 shiftwidth=2 expandtab
 
     " highlight unnecessary whitespace
     highlight ExtraWhitespace ctermbg=red guibg=red