joostkremers / writeroom-mode

Writeroom-mode: distraction-free writing for Emacs.
BSD 3-Clause "New" or "Revised" License
611 stars 28 forks source link

Conflict with Org Mode #30

Closed tanrax closed 8 years ago

tanrax commented 8 years ago

Writing returns to be aligned to the left

joostkremers commented 8 years ago

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?

tanrax commented 8 years ago

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

joostkremers commented 8 years ago

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.

tanrax commented 8 years ago

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.