Using emacs 24, when I try to use the Neotree package I am having issues with modifying the fixed-width of the window. I believe I have found the responsible chunk of lisp, but changing the value doesn't seem to help on reload.

(defcustom neo-window-width 25
  "*Specifies the width of the NeoTree window."
  :type 'integer
  :group 'neotree)
  • One of the very first things that I did when I tried out this library was to modify neo-global--get-window to replace (neo-global--create-window) with my own display-buffer-left function that sets the window width correctly. In my opinion, neo-global--create-window just asks for trouble. Essentially, you can create your own display-buffer-left-function that and the BUFFER and ALIST look like this: (lawlist-display-buffer-left (neo-global--get-buffer t) '((window-width . 33))) stackoverflow.com/a/21544307/2112489 – lawlist Aug 17 '15 at 16:09
  • 4
    If you don't care about having a dynamic width. Just set the value like (setq neo-window-width 40) then kill current neotree buffer and run neotree again to see the update. – Jordon Biondo Aug 17 '15 at 18:27

You can disable neo-window-fixed-size and restart Neotree.

enter image description here

  • 1
    This does seem to couple the width to a buffer. If I change buffers it resizes to its original size. – Christophe De Troyer Jun 13 '17 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.