Add global githook, fix emacs vterm
This commit is contained in:
@@ -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")))
|
||||
|
||||
@@ -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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user