Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create the neotree window by display-buffer-in-side-window. #197

Merged
merged 2 commits into from
Oct 12, 2016
Merged

create the neotree window by display-buffer-in-side-window. #197

merged 2 commits into from
Oct 12, 2016

Conversation

jianingy
Copy link
Collaborator

display-buffer-in-side-window prevent the awkward situation that neotree becomes the only window in the emacs and no split can work. Besides, previous attempts using defadvice on delete-window and delete-other-window is hard to reason.

You can test this by using 'C-x 0' on the main window by using the following startup script to check if the awkward moment comes.

(setq debug-on-error t
      el-get-verbose t)
(setq inhibit-startup-screen nil)

(add-to-list 'load-path ".")
(require 'neotree)
(neotree-toggle)

`display-buffer-in-side-window` prevent the awkward situation
that neotree becomes the only window in the emacs and no split
can work. Besides,  previous attempts using `defadvice` on
`delete-window` and `delete-other-window` is hard to reason.
After we switch to `display-side-window`, we do not need this option
anymore. neotree window will never be lonely from now on. I believe
this is more intuitive than leaving a tree-view solely in an editor.
@aborn aborn merged commit ba1f4ba into jaypei:dev Oct 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants