all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Temporarily remove the mode-line
@ 2022-11-29 20:07 Heime
  2022-11-29 20:14 ` Philip Kaludercic
  0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-11-29 20:07 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor

How can I temporarily remove the mode-line?  Would not want to do 
(setq mode-line-format nil).





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Temporarily remove the mode-line
  2022-11-29 20:07 Temporarily remove the mode-line Heime
@ 2022-11-29 20:14 ` Philip Kaludercic
  2022-11-29 20:18   ` Heime
  0 siblings, 1 reply; 6+ messages in thread
From: Philip Kaludercic @ 2022-11-29 20:14 UTC (permalink / raw)
  To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor

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?



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Temporarily remove the mode-line
  2022-11-29 20:14 ` Philip Kaludercic
@ 2022-11-29 20:18   ` Heime
  2022-11-29 20:57     ` Philip Kaludercic
  0 siblings, 1 reply; 6+ messages in thread
From: Heime @ 2022-11-29 20:18 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: Heime via Users list for the GNU Emacs text editor

------- 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.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Temporarily remove the mode-line
  2022-11-29 20:18   ` Heime
@ 2022-11-29 20:57     ` Philip Kaludercic
  2022-11-30  5:23       ` Bob Newell
  0 siblings, 1 reply; 6+ messages in thread
From: Philip Kaludercic @ 2022-11-29 20:57 UTC (permalink / raw)
  To: Heime; +Cc: Heime via Users list for the GNU Emacs text editor

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---



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Temporarily remove the mode-line
  2022-11-29 20:57     ` Philip Kaludercic
@ 2022-11-30  5:23       ` Bob Newell
  2022-11-30  6:18         ` Emanuel Berg
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Newell @ 2022-11-30  5:23 UTC (permalink / raw)
  To: Philip Kaludercic; +Cc: help-gnu-emacs

>> Toggle it.

Should this possibly be


> (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
                        old-mode-line nil)
> 		(setq old-mode-line mode-line-format
> 		      mode-line-format nil))))
>

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU/Linux/Emacs/Gnus/BBDB



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Temporarily remove the mode-line
  2022-11-30  5:23       ` Bob Newell
@ 2022-11-30  6:18         ` Emanuel Berg
  0 siblings, 0 replies; 6+ messages in thread
From: Emanuel Berg @ 2022-11-30  6:18 UTC (permalink / raw)
  To: help-gnu-emacs

Bob Newell wrote:

> (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
>                         old-mode-line nil)
> 		(setq old-mode-line mode-line-format
> 		      mode-line-format nil))))

(defun toggle-local-var (var)
  (set-variable var (not (symbol-value var)) t) )

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-11-30  6:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-11-30  5:23       ` Bob Newell
2022-11-30  6:18         ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.