all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.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
Date: Sat, 21 Nov 2020 01:16:15 +0100	[thread overview]
Message-ID: <trinity-cdb450d9-a689-4455-aa6f-29c60d65a60e-1605917775144@3c-app-mailcom-bs01> (raw)
In-Reply-To: <trinity-b17b3b6d-8de4-4e0f-9f37-a463f620f752-1605916040823@3c-app-mailcom-bs01>

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



  reply	other threads:[~2020-11-21  0:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20 23:47 Fullscreen with no toolbar, no menubar, and, no scroll bar Christopher Dimech
2020-11-21  0:16 ` Christopher Dimech [this message]
2020-11-21  1:20   ` Stefan Kangas
2020-11-21  1:31     ` Christopher Dimech

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-cdb450d9-a689-4455-aa6f-29c60d65a60e-1605917775144@3c-app-mailcom-bs01 \
    --to=dimech@gmx.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.
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.