I'm using doom emacs.

I've enabled treemacs in ~/.doom.d/init.el


enter image description here

I couldn't resize the project sidebar. I have tried this mac OS and opensuse 15.1

I get message <left-fringe> <mouse-drag-1> is undefined. Do I miss any configuration?

2 Answers 2


I had to add these lines to my doom config in order to allow resizing via mouse to work:

(setq treemacs-width 30)
(setq treemacs--width-is-locked nil)
(setq treemacs-width-is-initially-locked nil)

Either set treemacs-width explicitly by adding something like (setq treemacs-width 30) to ~/.doom.d/config.el

Otherwise press tw to toggle fixed-width mode in treemacs, then you can resize it.

Adding (setq treemacs--width-is-locked nil) to ~/.doom.d/config.el may work too

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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