Fix neotree-show when open in other frame/session
Annoying when neotree is open in one emacsclient frame (possibly buried) and you're trying to open a neotree pane in another.
This commit is contained in:
parent
816df321a5
commit
fbc93783fe
1 changed files with 3 additions and 3 deletions
|
@ -8,9 +8,9 @@
|
|||
(project-root (doom-project-root)))
|
||||
(require 'neotree)
|
||||
(cond ((and (neo-global--window-exists-p)
|
||||
(window-live-p neo-global--buffer)
|
||||
(eq (current-buffer) neo-global--buffer))
|
||||
(neotree-hide))
|
||||
(get-buffer-window neo-buffer-name t))
|
||||
(neotree-hide)
|
||||
(neotree-find path project-root))
|
||||
((not (and (neo-global--window-exists-p)
|
||||
(equal (file-truename (neo-global--with-buffer neo-buffer--start-node))
|
||||
(file-truename project-root))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue