From: Christopher Dimech <dimech@gmx.com>
To: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Make fullscreen with margins
Date: Sat, 21 Nov 2020 21:13:41 +0100 [thread overview]
Message-ID: <trinity-ada12f46-245f-49b9-ad47-43a17c47982f-1605989621573@3c-app-mailcom-bs11> (raw)
I have the following code for getting to full screen Have made buffer-margins
that sets a margin on either side of buffer. Bet I would like that the
margins are only set when there is only one buffer in the frame.
(defun fullscr-cycle ()
"Toggles Fullscreen Mode"
(interactive)
(if (eq (frame-parameter nil 'fullscreen) 'fullboth)
(progn (buffer-margins 0)
(disable-fullscr))
(progn (buffer-margins) ! Defaults margins to width of 3
(enable-fullscr)) ))
next reply other threads:[~2020-11-21 20:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-21 20:13 Christopher Dimech [this message]
2020-11-22 14:19 ` Make fullscreen with margins Michael Heerdegen
2020-11-22 14:25 ` Christopher Dimech
2020-11-22 14:34 ` Michael Heerdegen
2020-11-22 14:45 ` Christopher Dimech
2020-11-22 14:58 ` Michael Heerdegen
2020-11-22 15:20 ` Christopher Dimech
2020-11-22 15:27 ` Michael Heerdegen
2020-11-22 15:57 ` Jean Louis
2020-11-22 20:51 ` Michael Heerdegen
2020-11-24 14:37 ` Christopher Dimech
2020-11-24 15:23 ` Michael Heerdegen
2020-11-22 15:28 ` Christopher Dimech
2020-11-22 16:02 ` Jean Louis
2020-11-22 20:54 ` Michael Heerdegen
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-ada12f46-245f-49b9-ad47-43a17c47982f-1605989621573@3c-app-mailcom-bs11 \
--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.