mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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))))
|
||||
|
Reference in New Issue
Block a user