From a60e3f385317d4f35d1ab7a853ede6640b4fccc5 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 26 Jun 2023 16:26:51 +1000 Subject: Some small fixes and changes * emacs/.emacs.d/init/ycp-editing.el: fix a require * emacs/.emacs.d/init/ycp-prog.el: fix sql require * emacs/.emacs.d/init/ycp-system.el: remove double removal of tramp from file-name-handler-alist * emacs/.emacs.d/init/ycp-vc.el: add a post commit hook to revert project buffers * emacs/.emacs.d/lisp/my/my-mariadb.el: fix sql require * emacs/.emacs.d/lisp/my/my-project.el: add a command to revert project buffers --- emacs/.emacs.d/init/ycp-vc.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-vc.el') diff --git a/emacs/.emacs.d/init/ycp-vc.el b/emacs/.emacs.d/init/ycp-vc.el index 66bb06f..232639e 100644 --- a/emacs/.emacs.d/init/ycp-vc.el +++ b/emacs/.emacs.d/init/ycp-vc.el @@ -75,7 +75,12 @@ (:install t) (:delay 30) (setq git-commit-summary-max-length 50) - (setq git-commit-style-convention-checks '(non-empty-second-line))) + (setq git-commit-style-convention-checks '(non-empty-second-line)) + ;; Revert all buffers in the project after a commit, to refresh + ;; diff-hl + (require 'my-project) + (add-hook 'git-commit-post-finish-hook #'my-project-revert-all-buffers) + ) (my-package magit (:install t) -- cgit v1.2.3