From 02a2ef1a77650f8bf0860a88617371f007163989 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Mon, 5 Feb 2024 16:02:07 -0500 Subject: [PATCH] fix(emacs): reasonable neotree behaviour for magit status buffer Signed-off-by: Lucas Sta Maria --- .emacs.d/include/misc.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index fe2a68a..2e9c9e1 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -113,6 +113,7 @@ (let ((current-directory (or (and buffer-file-name (file-name-directory buffer-file-name)) (and (eq major-mode 'dired-mode) (dired-current-directory)) + (and (eq major-mode 'magit-status-mode) (magit-toplevel)) "~"))) (if (and (fboundp 'neo-global--window-exists-p) (neo-global--window-exists-p))