feat: add pre-commit-hooks

This commit is contained in:
Swarsel 2024-12-10 18:06:26 +01:00
parent eb1d563c35
commit 584cc31ce3
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 140 additions and 2 deletions

View file

@ -337,7 +337,8 @@ create a new one."
"oa" '((lambda () (interactive) (org-refile)) :which-key "org-refile")
"ob" '((lambda () (interactive) (org-babel-mark-block)) :which-key "Mark whole src-block")
"ol" '((lambda () (interactive) (org-insert-link)) :which-key "insert link")
"os" '((lambda () (interactive) (org-store-link)) :which-key "store link")
"oc" '((lambda () (interactive) (org-store-link)) :which-key "copy (=store) link")
"os" '(shfmt-region :which-key "format sh-block")
"od" '((lambda () (interactive) (org-babel-demarcate-block)) :which-key "demarcate (split) src-block")
"on" '(nixpkgs-fmt-region :which-key "format nix-block")
"ot" '(swarsel/org-babel-tangle-config :which-key "tangle file")