joostkremers / writeroom-mode

Writeroom-mode: distraction-free writing for Emacs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conflict with Org Mode

tanrax opened this issue · comments

Writing returns to be aligned to the left

This is probably due to the fact that something in org-mode uses the margins and doesn't take their existing width into account.

Do you have any org-specific configurations in your init file? Also, which Emacs version are you using and which Org version? Do you have any minor modes active in your org-mode buffers?

I have tried all settings commenting :P

screen shot 2016-05-25 at 19 39 26
screen shot 2016-05-25 at 19 39 20
screen shot 2016-05-25 at 19 39 08

I notice in your screen shots that you have line numbers. If you're using linum-mode for that, then that is probably the cause of the problem. linum-mode is incompatible with writeroom-mode, because it usurps the left margin.

You can use nlinum-mode instead, which is available from ELPA. There are stlll some incompatibilities between nlinum-mode and writeroom-mode but they don't happen so often and are better manageable.

Thank you! It works perfectly :)
As you said, I installed nlinum-mode
After I changed my setup:
(global-linum-mode t)
to
(global-nlinum-mode t)

Your script wonderful job.