Whenever I open up an .org file in spacemacs, the truncate-lines variable is set to t.
How can I make truncate-lines be set to nil by default in org-mode in the org-layer for spacemacs?
I would like lines to be wrapped in org-mode when they are about to go over the edge of the screen.
I've read different things online that talk about how to fix this problem.
One suggestion is to set the org-startup-truncated variable to nil in dotspacemacs/user-config.
I've tried doing that like this:
(defun dotspacemacs/user-config ()
(setq org-startup-truncated nil))
However, that doesn't appear to work. When I open up a .org file, truncate-lines is still set to t.
I've also tried adding a hook to org mode to to call spacemacs/toggle-truncate-lines-off automatically:
(defun dotspacemacs/user-config ()
(add-hook 'org-mode-hook 'spacemacs/toggle-truncate-lines-off))
This also doesn't appear to work. When I open up a .org file, truncate-lines is still set to t.
However, after opening a .org file, I am able to manually run the spacemacs/toggle-truncate-lines-off in order to set truncate-lines to nil.
Just in case, here is my .spacemacs file. You can see my multiple attempts at setting truncate-lines.