emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposal for a new API to fullscreen


From: Tassilo Horn
Subject: Re: Proposal for a new API to fullscreen
Date: Tue, 19 Aug 2008 12:26:33 +0200
User-agent: KMail/1.10.0 (Linux/2.6.26-gentoo-r1; KDE/4.1.62; x86_64; ; )

On Tuesday 19 August 2008 11:58:51 René Kyllingstad wrote:

Hi René,

> What if you live in Emacs, and use the same config on many window
> managers and platforms?  Then it's nice to configure it once in Emacs.

Ok, I see.  Then this command probably does what you and the OP want.

--8<---------------cut here---------------start------------->8---
(defun toggle-frame-fullscreen ()
  "Toggle the fullscreen status of the current frame."
  (interactive)
  (if (eq (frame-parameter nil 'fullscreen) 'fullboth)
      (set-frame-parameter nil 'fullscreen nil)
    (set-frame-parameter nil 'fullscreen 'fullboth)))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]