about summary refs log tree commit diff
path: root/cmake-format
diff options
context:
space:
mode:
Diffstat (limited to 'cmake-format')
-rw-r--r--cmake-format/.cmake-format18
-rwxr-xr-xcmake-format/@install7
2 files changed, 25 insertions, 0 deletions
diff --git a/cmake-format/.cmake-format b/cmake-format/.cmake-format
new file mode 100644
index 0000000..c3a5c9b
--- /dev/null
+++ b/cmake-format/.cmake-format
@@ -0,0 +1,18 @@
+---
+format:
+  disable: false
+  line_width: 80
+  tab_size: 4
+  use_tabchars: false
+  fractional_tab_policy: use-space
+  separate_ctrl_name_with_space: false
+  separate_fn_name_with_space: false
+  dangle_parens: false
+  dangle_align: prefix
+  line_ending: unix
+  command_case: lower
+  keyword_case: upper
+  enable_sort: true
+  autosort: false
+...
+# vim: filetype=yaml
diff --git a/cmake-format/@install b/cmake-format/@install
new file mode 100755
index 0000000..d3b4820
--- /dev/null
+++ b/cmake-format/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    cmake-format

Consider giving Nix/NixOS a try! <3