As @drew asked me to do here I'm asking one question per problem

I'm trying to enable/disable visual-fill-column when there is one window/multiple windows.

(defun my-visual-fill-one-window ()
  (global-visual-fill-column-mode -1)
  (if (one-window-p)
      (global-visual-fill-column-mode 1)
    (global-visual-fill-column-mode -1)

(add-hook 'window-state-change-hook 'my-visual-fill-one-window)

Treemacs stops working (I can't open its window) with the following error:

treemacs--popup-window: Wrong type argument: window-live-p, nil

Your Answer

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

Browse other questions tagged or ask your own question.