From cc87261421ebcb1dc87c8380347e9260a69c998d Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 3 Oct 2023 22:41:30 +1100 Subject: [emacs] [gdb] Some small changes - my-mark-backward-up-list: like backward-up-list, but also mark the sexp - my-kill-sexp-or-comment: kill the next sexp or comment, replacing kill-sexp - my-mark-sexp-or-comment: mark the next sexp or comment, replacing mark-sexp - my-magit-ignore-other-worktrees: a filter-args advice to add --ignore-other-worktrees to magit-checkout --- emacs/.emacs.d/init/ycp-vc.el | 3 +++ 1 file changed, 3 insertions(+) (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 8a3fed5..16261b6 100644 --- a/emacs/.emacs.d/init/ycp-vc.el +++ b/emacs/.emacs.d/init/ycp-vc.el @@ -123,6 +123,9 @@ (require 'magit-ediff) (add-hook 'magit-ediff-quit-hook 'delete-frame) + + (require 'magit-branch) + (advice-add 'magit-checkout :filter-args #'my-magit-ignore-other-worktrees) ) (my-package my-magit -- cgit v1.2.3