aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-01-06 15:01:15 -0800
committerGravatar Tom Willemse2026-01-06 15:06:12 -0800
commitba349c7cc342d8e078ff6699384e8153bfd5a01d (patch)
treefd5d0003195cd11654a83a44e897314b3da0adcb
parentea20080f5ce3a4e7f87455308afc30d21d5a8a24 (diff)
downloademacs-config-ba349c7cc342d8e078ff6699384e8153bfd5a01d.tar.gz
emacs-config-ba349c7cc342d8e078ff6699384e8153bfd5a01d.zip
oni-magit: Set ‘magit-diff-visit-prefer-worktree’ to t
-rw-r--r--oni-magit.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/oni-magit.el b/oni-magit.el
index 97cc1af..9e34fcd 100644
--- a/oni-magit.el
+++ b/oni-magit.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2025.0627.153316
+;; Version: 2026.0106.150051
;; Package-Requires: (magit magit-popup oni-hydra)
;; This program is free software; you can redistribute it and/or modify
@@ -61,6 +61,12 @@ _i_: Init
(when (eq system-type 'windows-nt)
(setq magit-git-executable "c:/msys64/usr/bin/git.exe"))
+;;; The behavior was changed recently. The return key now opens the index file
+;;; rather than the worktree file. I'm so used to return going to the worktree
+;;; file that I just don't like the new behavior. I'm not sure what I'd ever
+;;; want to see the index file for.
+(setq magit-diff-visit-prefer-worktree t)
+
;;;###autoload
(global-set-key (kbd "C-c v") '("Magit commands" . oni-hydra-magit/body))