Add global githook, fix emacs vterm

This commit is contained in:
Alexander
2026-06-24 17:13:43 +02:00
parent 3d112ef5d0
commit 3adbdf56bf
2 changed files with 11 additions and 0 deletions
@@ -395,3 +395,7 @@ Must be called BEFORE jdtls starts. Sets global lsp-java-vmargs."
;; (it contains markers/buffers that can't serialize properly)
(after! savehist
(add-to-list 'savehist-ignored-variables 'evil-jumps-history))
;; vterm: use system default shell (nushell)
(after! vterm
(setq vterm-shell (getenv "SHELL")))
+7
View File
@@ -87,6 +87,13 @@
directory = ["/home/${username}/nixos-dotfiles" "/home/${username}/.cache/nix"];
};
};
hooks = {
commit-msg = pkgs.writeScript "commit-msg" ''
#!${pkgs.bash}/bin/bash
# Remove Co-Authored-by lines from commit messages (Claude likes to add these)
${pkgs.gnused}/bin/sed -i '/^Co-[Aa]uthored-[Bb]y:/d' "$1"
'';
};
};
};