[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: toggle the line-length of an entire document?
From: |
Drew Adams |
Subject: |
RE: toggle the line-length of an entire document? |
Date: |
Mon, 3 Oct 2016 06:21:05 -0700 (PDT) |
> I'm currently using this to toggle line-length -
> (setq-default fill-column 100)
> (defvar my-last-fill-col 75 "...")
> (defun my-toggle-fill-column ()
> (interactive)
> (setq-default my-last-fill-col
> (prog1 fill-column
> (setq-default fill-column my-last-fill-col)))
> (message "Fill column is now %d" fill-column))
>
> Which works great for individual paragraphs, but now I want to toggle
> the line-length of an entire document, but I can't work out how I'm
> supposed to do it, so can anyone help please? Great aunt google hasn't
> been much help so far! :) Any ideas please folks?
See these commands: `fill-region', `fill-nonuniform-paragraphs', and
`fill-individual-paragraphs'.