and I’m now getting this the error in subject when I try to create a new node.
Weirdly after I removed my whole .emacs.d and recreated it it was fixed, but today it’s broken again without really having done any changes.
Any idea what it could be?
I suspect it’s maybe related to treemacs, but changing the config there didn’t help yet, so maybe it’s something else.
Yeah sure I removed the hook, but I would like to enable it again once I fix it, since it’s quite useful.
Anyway this is the full error, and the file is actually created, and if I try to visit it a second time it works, I just can’t see see the right buffer when I do C-c n f for the first time.
At the same time, Emacs opens a treemacs buffer as a side-buffer via find-file-hook
You complete the capture peocess
Emacs tries to close the capture buffer
Emacs errors because side-buffer cannot be threonly buffer in a frame
If this is indeed what is happening then, you can just have a conditional in your the function set in find-file-hook to avoid opening treemacs for the capture buffer.