unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnu.org>
To: Bastien <bzg@altern.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs as a distraction free environment
Date: Thu, 23 Jan 2014 09:54:13 +0100	[thread overview]
Message-ID: <87vbxbdqoa.fsf@zigzag.favinet> (raw)
In-Reply-To: <87fvofp3h2.fsf@bzg.ath.cx> (Bastien's message of "Thu, 23 Jan 2014 08:22:17 +0100")

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

() Bastien <bzg@altern.org>
() Thu, 23 Jan 2014 08:22:17 +0100

   http://bzg.fr/emacs-strip-tease.html

You can use ‘rotatef’ to swap the values of two variables.

(defvar stashed-mode-line-format nil
  "Storage for `toggle-mode-line'.")

(defun toggle-mode-line ()
  "Toggle visibility of mode line."
  (interactive)
  (rotatef mode-line-format
           stashed-mode-line-format))
  
I don't know if this works w/ ‘defvar-local’ vars, however.

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2014-01-23  8:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  7:22 Emacs as a distraction free environment Bastien
2014-01-23  8:54 ` Thien-Thi Nguyen [this message]
2014-01-23  9:08   ` Bastien
2014-01-23  9:36     ` Glyn Millington
2014-01-23 11:59       ` Bastien
2014-01-23 17:14   ` Drew Adams
2014-01-23 10:00 ` Rasmus
     [not found] ` <mailman.12615.1390471200.10748.help-gnu-emacs@gnu.org>
2014-01-24 12:15   ` Joost Kremers
2014-01-24 12:31     ` Bastien
     [not found] <mailman.12607.1390461766.10748.help-gnu-emacs@gnu.org>
2014-01-23 13:13 ` henry atting
2014-01-23 21:38 ` Emanuel Berg
2014-01-24  6:29   ` Bastien

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=87vbxbdqoa.fsf@zigzag.favinet \
    --to=ttn@gnu.org \
    --cc=bzg@altern.org \
    --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).