about summary refs log tree commit diff
path: root/cmake-format
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /cmake-format
chore: init HEAD master
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