I get this message when I try to resize the neotree window using my mouse:
No resizable window on the left of this one
Does anyone know how I can make the neotree window re-sizable?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI get this message when I try to resize the neotree window using my mouse:
No resizable window on the left of this one
Does anyone know how I can make the neotree window re-sizable?
Found a solution.
It works if I put this into my config:
(setq neo-window-fixed-size nil)
The only downside is that neotree does not remember the window width. When you switch buffers it will reset the width back to the default value. There is a related issue on github.
(setq neo-window-width 20)
to which neotree will reopen -- so there should be a way to change the value according to the previously used width, if you have the time, inclination and emacs-lisp chops.
Feb 20, 2018 at 7:31
Put this on your emacs configuration file:
;; Set the neo-window-width to the current width of the
;; neotree window, to trick neotree into resetting the
;; width back to the actual window width.
;; Fixes: https://github.com/jaypei/emacs-neotree/issues/262
(eval-after-load "neotree"
'(add-to-list 'window-size-change-functions
(lambda (frame)
(let ((neo-window (neo-global--get-window)))
(unless (null neo-window)
(setq neo-window-width (window-width neo-window)))))))