joostkremers / writeroom-mode

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

Implement writeroom-adjust-width command #29

Closed wbolster closed 8 years ago

wbolster commented 8 years ago

This adds a writeroom-adjust-width command that allows dynamic tweaking of the writing area's width. Numeric prefix arguments are interpreted as the amount of adjustment, e.g.

  M-1 M-0 M-x writeroom-adjust-width

...increases the width by 10 characters.

Calling from lisp code (or from key bindings) is also possible:

  (writeroom-adjust-width 10)
joostkremers commented 8 years ago

That's quite a nice idea, thanks!

wbolster commented 8 years ago

that was fast. :)

together with text scale adjustment shortcuts this makes for a great full screen experience that is easily adapted to laptop screen, big monitor or beamer. writeroom-mode is awesome.

joostkremers commented 8 years ago

I added two commands writeroom-increase-width and writeroom-decrease-width, which increase/decrease the text area width by 2 characters (1 character doesn't always have a visible effect, so I decided on 2). You can bind these to, e.g., C-M-< and C-M-> to change the text width in small steps.