[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Toggle line length?
From: |
Sharon Kimble |
Subject: |
Re: Toggle line length? |
Date: |
Thu, 29 Jan 2015 08:24:23 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> 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’s 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.
Sharon.
--
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.6, emacs 24.4.1.0
signature.asc
Description: PGP signature