* Fullscreen with no toolbar, no menubar, and, no scroll bar
@ 2020-11-20 23:47 Christopher Dimech
2020-11-21 0:16 ` Christopher Dimech
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Dimech @ 2020-11-20 23:47 UTC (permalink / raw)
To: Help Gnu Emacs
L know that if I want Emacs with no toolbar, no menubar, and, no scroll bar,
I can write. But what if I also want fullscreen to get CompleteFullScreen.
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
For instance, a keybinding that toggles between Normal and CompleteFullScreen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fullscreen with no toolbar, no menubar, and, no scroll bar
2020-11-20 23:47 Fullscreen with no toolbar, no menubar, and, no scroll bar Christopher Dimech
@ 2020-11-21 0:16 ` Christopher Dimech
2020-11-21 1:20 ` Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Dimech @ 2020-11-21 0:16 UTC (permalink / raw)
To: Christopher Dimech; +Cc: Help Gnu Emacs
DONE
(defun enable-fullscreen ()
(interactive)
(set-frame-parameter nil 'fullscreen 'fullboth)
;; Disable Emacs Bars
(tool-bar-mode -1)
(scroll-bar-mode -1)
(menu-bar-mode -1))
(defun disable-fullscreen ()
(interactive)
(set-frame-parameter nil 'fullscreen 'fullheight)
;; Enable Emacs Bars
(tool-bar-mode t)
(scroll-bar-mode t)
(menu-bar-mode t))
(defun fullscreen-cycle ()
(interactive)
(if (eq (frame-parameter nil 'fullscreen) 'fullboth)
(disable-fullscreen)
(enable-fullscreen) ))
(global-unset-key [f11])
(global-set-key (kbd "<f11>") #'fullscreen-cycle)
> Sent: Saturday, November 21, 2020 at 12:47 AM
> From: "Christopher Dimech" <dimech@gmx.com>
> To: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Fullscreen with no toolbar, no menubar, and, no scroll bar
>
>
> L know that if I want Emacs with no toolbar, no menubar, and, no scroll bar,
> I can write. But what if I also want fullscreen to get CompleteFullScreen.
>
> (tool-bar-mode -1)
> (menu-bar-mode -1)
> (scroll-bar-mode -1)
>
> For instance, a keybinding that toggles between Normal and CompleteFullScreen
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fullscreen with no toolbar, no menubar, and, no scroll bar
2020-11-21 0:16 ` Christopher Dimech
@ 2020-11-21 1:20 ` Stefan Kangas
2020-11-21 1:31 ` Christopher Dimech
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2020-11-21 1:20 UTC (permalink / raw)
To: Christopher Dimech; +Cc: Help Gnu Emacs
Christopher Dimech <dimech@gmx.com> writes:
> (global-unset-key [f11])
> (global-set-key (kbd "<f11>") #'fullscreen-cycle)
Why not just use `toggle-frame-fullscreen'?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fullscreen with no toolbar, no menubar, and, no scroll bar
2020-11-21 1:20 ` Stefan Kangas
@ 2020-11-21 1:31 ` Christopher Dimech
0 siblings, 0 replies; 4+ messages in thread
From: Christopher Dimech @ 2020-11-21 1:31 UTC (permalink / raw)
To: Stefan Kangas; +Cc: Help Gnu Emacs
Because I wanted to remove the menubar, taskbar, and scrollbar as well.
> Sent: Saturday, November 21, 2020 at 2:20 AM
> From: "Stefan Kangas" <stefankangas@gmail.com>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Fullscreen with no toolbar, no menubar, and, no scroll bar
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > (global-unset-key [f11])
> > (global-set-key (kbd "<f11>") #'fullscreen-cycle)
>
> Why not just use `toggle-frame-fullscreen'?
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-21 1:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-20 23:47 Fullscreen with no toolbar, no menubar, and, no scroll bar Christopher Dimech
2020-11-21 0:16 ` Christopher Dimech
2020-11-21 1:20 ` Stefan Kangas
2020-11-21 1:31 ` Christopher Dimech
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).