all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: sds@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: toggle-frame-maximized
Date: Wed, 12 Dec 2012 07:49:36 +0100	[thread overview]
Message-ID: <898617A0-9875-4CB7-95BB-45D04CFF72CD@swipnet.se> (raw)
In-Reply-To: <87boe0qq8d.fsf@gnu.org>

Hello.

11 dec 2012 kl. 21:38 skrev Sam Steingold <sds@gnu.org>:

> A de-facto standard keybinding is f11: maximize/full screen the window.
> (chrome, gnome-terminal, freeciv - all comply).
> 
> Here is an implementation for emacs:
> 
> --8<---------------cut here---------------start------------->8---
> (defcustom frame-maximization-mode 'maximized
>  "The maximization style of \\[toggle-frame-maximized]."
>  :version "24.4"
>  :type '(choice
>          (const :tab "Respect window manager screen decorations." maximized)
>          (const :tab "Ignore window manager screen decorations." fullscreen))
>  :group 'frames)
> 
> (defun toggle-frame-maximized ()
>  "Maximize/un-maximize Emacs frame according to `frame-maximization-mode'."
>  (interactive)
>  (modify-frame-parameters
>   nil `((fullscreen . ,(if (frame-parameter nil 'fullscreen)
>                            nil frame-maximization-mode)))))
> 
> (define-key global-map [f11] 'toggle-frame-maximized)
> --8<---------------cut here---------------end--------------->8---
> 
> I think this should go into frame.el.
> Objections?

It is a good idea overall.  But I would like to suggest Shift-f11 or Ctrl-f11 or something to do the complement of frame-maximization-mode.  

I tend to use both, and having both available would be convinient.

Thanks,

	Jan D.




      parent reply	other threads:[~2012-12-12  6:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 20:38 toggle-frame-maximized Sam Steingold
2012-12-11 22:28 ` toggle-frame-maximized Xue Fuqiao
2012-12-11 22:38   ` toggle-frame-maximized Sam Steingold
2012-12-11 23:01     ` toggle-frame-maximized Drew Adams
2012-12-12  6:49 ` Jan Djärv [this message]

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=898617A0-9875-4CB7-95BB-45D04CFF72CD@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=sds@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.