all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* toggle the line-length of an entire document?
@ 2016-10-03  7:07 Sharon Kimble
  2016-10-03 13:21 ` Drew Adams
  2016-10-03 14:16 ` Thien-Thi Nguyen
  0 siblings, 2 replies; 4+ messages in thread
From: Sharon Kimble @ 2016-10-03  7:07 UTC (permalink / raw)
  To: help-emacs

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-03 18:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-03  7:07 toggle the line-length of an entire document? Sharon Kimble
2016-10-03 13:21 ` Drew Adams
2016-10-03 14:16 ` Thien-Thi Nguyen
2016-10-03 18:57   ` Sharon Kimble

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.