fix(emacs): reasonable neotree behaviour for magit status buffer
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
81c3106161
commit
02a2ef1a77
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue