summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-05-26 16:38:16 +0200
committerTimo Wilken2023-05-26 16:38:16 +0200
commita0d8010249ec4862d64ede6699b18a069fe94ef2 (patch)
tree7f117d29bc5f7045f75168116de466bca814b49a
parentd1fd1f539c3b4f9b77394aabd5fb004177beb3a0 (diff)
Default to git commit -v
-rw-r--r--tw/home/files/emacs-init.el2
-rw-r--r--tw/home/files/zshrc2
2 files changed, 2 insertions, 2 deletions
diff --git a/tw/home/files/emacs-init.el b/tw/home/files/emacs-init.el
index 06d03d7b..dcf7e784 100644
--- a/tw/home/files/emacs-init.el
+++ b/tw/home/files/emacs-init.el
@@ -62,7 +62,7 @@
(mapc (apply-partially #'add-to-list 'auto-mode-alist)
`((,(rx (or bos "/") "PKGBUILD" eos) . sh-mode)
(,(rx ".install" eos) . sh-mode)
- (,(rx (or bos "/") "COMMIT_EDITMSG" eos) . text-mode)
+ (,(rx (or bos "/") "COMMIT_EDITMSG" eos) . diff-mode) ; useful for `git commit -v'
(,(rx bos "/tmp/neomutt-") . mail-mode)
(,(rx ".eml" eos) . mail-mode)
(,(rx "." (1+ anything) "rc" eos) . conf-unix-mode)))
diff --git a/tw/home/files/zshrc b/tw/home/files/zshrc
index 1d666f70..6d1da0ca 100644
--- a/tw/home/files/zshrc
+++ b/tw/home/files/zshrc
@@ -115,7 +115,7 @@ nomad-shell () {
# Git aliases
alias ga='git add'
alias gb='git branch'
-alias gc='git commit'
+alias gc='git commit -v'
alias gd='git diff'
alias gdk='git difftool --no-symlinks --dir-diff'
alias gds='git diff --staged'