unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Sharon Kimble <boudiccas@skimble.plus.com>
To: help-emacs <help-gnu-emacs@gnu.org>
Subject: toggle the line-length of an entire document?
Date: Mon, 03 Oct 2016 08:07:20 +0100	[thread overview]
Message-ID: <87ponhud07.fsf@skimble.plus.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 922 bytes --]


I'm currently using this to toggle line-length -

--8<---------------cut here---------------start------------->8---
(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))
--8<---------------cut here---------------end--------------->8---

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?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.1.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

             reply	other threads:[~2016-10-03  7:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03  7:07 Sharon Kimble [this message]
2016-10-03 13:21 ` toggle the line-length of an entire document? Drew Adams
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ponhud07.fsf@skimble.plus.com \
    --to=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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).