[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs as a distraction free environment
From: |
Thien-Thi Nguyen |
Subject: |
Re: Emacs as a distraction free environment |
Date: |
Thu, 23 Jan 2014 09:54:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
() 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
pgpSiIoqECsLi.pgp
Description: PGP signature