unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: Heime <heimeborgia@protonmail.com>
Cc: Heime via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: Temporarily remove the mode-line
Date: Tue, 29 Nov 2022 20:57:37 +0000	[thread overview]
Message-ID: <87r0xlbhry.fsf@posteo.net> (raw)
In-Reply-To: <kpcycvsTdbDmB9-QiUvyBqgDacnn5rT9f9va_cd_GL5DbTdUHlRlv_As1L1B8kM1iKyLWzkIHkf3TWBt3EH3cez_HgCTGgB5-uPmfljbHZU=@protonmail.com> (Heime's message of "Tue, 29 Nov 2022 20:18:10 +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	other threads:[~2022-11-29 20:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 20:07 Temporarily remove the mode-line Heime
2022-11-29 20:14 ` Philip Kaludercic
2022-11-29 20:18   ` Heime
2022-11-29 20:57     ` Philip Kaludercic [this message]
2022-11-30  5:23       ` Bob Newell
2022-11-30  6:18         ` Emanuel Berg

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=87r0xlbhry.fsf@posteo.net \
    --to=philipk@posteo.net \
    --cc=heimeborgia@protonmail.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).