unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Make fullscreen with margins
@ 2020-11-21 20:13 Christopher Dimech
  2020-11-22 14:19 ` Michael Heerdegen
  0 siblings, 1 reply; 15+ messages in thread
From: Christopher Dimech @ 2020-11-21 20:13 UTC (permalink / raw)
  To: Help Gnu Emacs

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



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

end of thread, other threads:[~2020-11-24 15:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-21 20:13 Make fullscreen with margins Christopher Dimech
2020-11-22 14:19 ` 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

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