From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Toggle line length?
Date: Thu, 29 Jan 2015 08:24:23 +0000 [thread overview]
Message-ID: <87386ukn9k.fsf@skimble.plus.com> (raw)
In-Reply-To: <375bc9fb-b06f-4cca-a780-0b3e961da48e@default> (Drew Adams's message of "Wed, 28 Jan 2015 21:40:20 -0800 (PST)")
[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2015-01-29 8:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 5:12 Toggle line length? Sharon Kimble
2015-01-29 5:40 ` Drew Adams
2015-01-29 8:24 ` Sharon Kimble [this message]
2015-01-29 14:37 ` Drew Adams
2015-01-29 18:23 ` Sharon Kimble
2015-01-29 18:39 ` Drew Adams
2015-01-29 18:52 ` Artur Malabarba
2015-01-29 19:12 ` Drew Adams
2015-01-29 19:51 ` Artur Malabarba
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=87386ukn9k.fsf@skimble.plus.com \
--to=boudiccas@skimble.plus.com \
--cc=drew.adams@oracle.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).