unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Sharon Kimble <boudiccas@skimble.plus.com>,
	help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: RE: Toggle line length?
Date: Wed, 28 Jan 2015 21:40:20 -0800 (PST)	[thread overview]
Message-ID: <375bc9fb-b06f-4cca-a780-0b3e961da48e@default> (raw)
In-Reply-To: <87bnlinpb3.fsf@skimble.plus.com>

> 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))



  reply	other threads:[~2015-01-29  5:40 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 [this message]
2015-01-29  8:24   ` Sharon Kimble
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=375bc9fb-b06f-4cca-a780-0b3e961da48e@default \
    --to=drew.adams@oracle.com \
    --cc=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).