From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: Toggle line length? Date: Thu, 29 Jan 2015 08:24:23 +0000 Message-ID: <87386ukn9k.fsf@skimble.plus.com> References: <87bnlinpb3.fsf@skimble.plus.com> <375bc9fb-b06f-4cca-a780-0b3e961da48e@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1422519903 15924 80.91.229.3 (29 Jan 2015 08:25:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2015 08:25:03 +0000 (UTC) Cc: help-gnu-emacs To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 09:25:03 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGkPK-0004wK-Af for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 09:24:58 +0100 Original-Received: from localhost ([::1]:58188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGkPJ-0008Ls-QF for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 03:24:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGkP4-0008La-8a for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 03:24:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGkOz-0008GJ-MK for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 03:24:42 -0500 Original-Received: from avasout01.plus.net ([84.93.230.227]:55894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGkOz-0008G9-Fr for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 03:24:37 -0500 Original-Received: from london.london ([87.114.246.1]) by avasout01 with smtp id lkQa1p00102YSlj01kQbYd; Thu, 29 Jan 2015 08:24:36 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=Sbd5d5hu c=1 sm=1 tr=0 a=+JS4kbT8CJym6xq95NtOew==:117 a=+JS4kbT8CJym6xq95NtOew==:17 a=0Bzu9jTXAAAA:8 a=acKW_TVRZv8A:10 a=EBOSESyhAAAA:8 a=yPCof4ZbAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=DsAoHyMvu8Umwybc_x0A:9 a=AzkGCXszX0QC9mp4:21 a=Jv4qOTRVNSyiebuR:21 a=QEXdDO2ut3YA:10 a=hxh4bDvG6jplu16al-QA:9 X-AUTH: skimble@:2500 In-Reply-To: <375bc9fb-b06f-4cca-a780-0b3e961da48e@default> (Drew Adams's message of "Wed, 28 Jan 2015 21:40:20 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.227 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102355 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Drew Adams writes: >> I have my line length set to 74 with this - (setq-default >> fill-column 74). Is it possible to be able to toggle this so that I >> could have an alternative line length of 100 please? I've been >> googling but without success. > > (defvar my-last-fill-col 100 "...") > > (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)) Thanks Drew, that=E2=80=99s working very nicely, and thanks for the speediness! :) How can I make the line-length of the complete buffer to be 100 please? Again toggling back and forth with 74. I'm writing a latex document, and 74 seems so short whilst I'm in the thick of it, so I'm wanting to try out 100.=20 Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.6, emacs 24.4.1.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUye44AAoJEDaBgBkK+INbD3oP/ibUgnG+T3AtKAqnX6FrXozB D/R12ZYKggAwOM6duRx2MokKESTlM7ugh84XB7+L4thIA81wgwpP3He2FRMxHW1g OazSsnPzYNat9AZIYkhPl7na9Yjpbxqz7wPiz1JZxQ2SEjJIa+pIsl7mIuUmHxk3 MO6tWqrX/posFuMXkmTqaWZ+no6rRNwyMFXvY4HkED/Rx3tdOsC/uSflTKlzFBIe ICGBy6RsFr0gCuLyLagiysKqx+LZuPlcjlPijmlqMcJb9NNavIODF8YCAnExUaVT GILSdGczZrM469NMzApNJ4wq8Es37JBkIr12WtOcbyKLfw3+17opYPbUCFuf7DNk hTh3Wq1+kwO8trchaGb1flGV4lONvl4uOS/kt4hMSs0skGIUFcXb8KPI/mF2e9VC 85rLvUkNety4EotgYaQNT3QeZdcfAtxBes/xN23p2AzqHF/AgbotqulVjHSd58J3 eCCLfu0zChXsJ4aZahY5lJNrIGTgDO6bba9VYQ0iRAe/OQUok/VQYZ82QBzwd6e+ C6AJwBCkopLgE7tyDnjxeDjbyeznBf/fRALx4swICBTBsJDQquJpAewDG0w7brCK RBc4psPxUtLMkdGdKjCAywHFQqYvzDlsMrTZACagCXGRswNgkFz0Zo9cKmiIyIXP a+QbPRpoEvFgsJKZmOpA =h/82 -----END PGP SIGNATURE----- --=-=-=--