From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: Temporarily remove the mode-line Date: Tue, 29 Nov 2022 20:57:37 +0000 Message-ID: <87r0xlbhry.fsf@posteo.net> References: <0JJGMNteC6azrZ3BCpPMyGOM1jYsJtmqe-xXwpcv_zuYz2VTY_rUM7XB4YpaY6MJSga_fue1QnWlV2aKg1wmZJdwVfkzNiB3WPVqEaDSprU=@protonmail.com> <87v8mxbjru.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 29 21:58:16 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p07gF-0001OE-6z for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 29 Nov 2022 21:58:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p07fn-0006Um-UQ; Tue, 29 Nov 2022 15:57:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p07fh-0006So-KN for help-gnu-emacs@gnu.org; Tue, 29 Nov 2022 15:57:41 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p07ff-0002nL-4r for help-gnu-emacs@gnu.org; Tue, 29 Nov 2022 15:57:41 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D048E240103 for ; Tue, 29 Nov 2022 21:57:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669755456; bh=BC6ToogGVHYhoPeifLVmnTWAS8KAbndbZ5M5jdaf2+w=; h=From:To:Cc:Subject:Date:From; b=NoOatpkVEnDu3fQQzpD5k4MCxwwkccpFcJUc7YWjcsgPUyAtn/Eg1TSY8timuaGl5 Fgawdm9eA/7ORB4BrORhm4rj4YxMdjlt1B6NZg/qhGWMDKz4F+V5N1XofcCbknymYh u2EMMu01ZUuR5W9hn7K8G6qyu/xZ4XrpMpRm8SgRXLOWl5PjRTW/htdLdjRDXBZVtK PXJzwcjn3OojwosHnFVfRFdBzgT0VinRdAzXVL5+sN5XIPYVhObSx8ZS1miAJGoW3c 2Y4XLIYcf55Si/lYuiworpmxzm4jUP8N5HDMQpUjvVJ07JvtmbhYy9AUciiIB2EVmv NN56wd1Yeb1rA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NMF5r1CNKz6tmJ; Tue, 29 Nov 2022 21:57:35 +0100 (CET) In-Reply-To: (Heime's message of "Tue, 29 Nov 2022 20:18:10 +0000") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141246 Archived-At: Heime writes: > ------- Original Message ------- > On Tuesday, November 29th, 2022 at 8:14 PM, Philip Kaludercic 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---