all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>,
	help-emacs <help-gnu-emacs@gnu.org>
Subject: RE: toggle the line-length of an entire document?
Date: Mon, 3 Oct 2016 06:21:05 -0700 (PDT)	[thread overview]
Message-ID: <c809efcd-8142-4992-b200-382b003dafab@default> (raw)
In-Reply-To: <87ponhud07.fsf@skimble.plus.com>

> 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'.



  reply	other threads:[~2016-10-03 13:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03  7:07 toggle the line-length of an entire document? Sharon Kimble
2016-10-03 13:21 ` Drew Adams [this message]
2016-10-03 14:16 ` Thien-Thi Nguyen
2016-10-03 18:57   ` Sharon Kimble

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c809efcd-8142-4992-b200-382b003dafab@default \
    --to=drew.adams@oracle.com \
    --cc=boudiccas@skimble.plus.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.