[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Toggle line length?

From: Drew Adams
Subject: RE: Toggle line length?
Date: Wed, 28 Jan 2015 21:40:20 -0800 (PST)

> 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 ()
  (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 via email to

[Prev in Thread] Current Thread [Next in Thread]