help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Temporarily remove the mode-line


From: Philip Kaludercic
Subject: Re: Temporarily remove the mode-line
Date: Tue, 29 Nov 2022 20:57:37 +0000

Heime <heimeborgia@protonmail.com> writes:

> ------- Original Message -------
> On Tuesday, November 29th, 2022 at 8:14 PM, Philip Kaludercic 
> <philipk@posteo.net> wrote:
>
>> Heime heimeborgia@protonmail.com writes:
>> 
>> > How can I temporarily remove the mode-line? Would not want to do
>> > (setq mode-line-format nil).
>> 
>> 
>> How temporarily is "temporarily". Do you want to toggle it? Or do you
>> want to have it be hidden for a few seconds only?
>
> Toggle it.

How is this

--8<---------------cut here---------------start------------->8---
(defvar-local old-mode-line nil)

(defun toggle-mode-line ()
  (interactive)
  (setq-local mode-line-format
              (if old-mode-line
                  (setq mode-line-format old-mode-line)
                (setq old-mode-line mode-line-format
                      mode-line-format nil))))
--8<---------------cut here---------------end--------------->8---



reply via email to

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