help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: maximising window?


From: Shelagh Manton
Subject: Re: maximising window?
Date: Sun, 8 Jun 2014 06:29:53 +0000 (UTC)
User-agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2)

On Sun, 08 Jun 2014 07:49:05 +0200, Igor Sosa Mayor wrote:

> "Chris F.A. Johnson" <address@hidden> writes:
> 
>> Symbol's function definition is void: toggle-frame-maximized Symbol's
>> function definition is void: toggle-frame-fullscreen No apropos matches
>> for `toggle-frame'
>>
>> (emacs 24.3.1)
> 
> I think this is new in emacs 24.4

For those who can't do the "toggle-frame-fullscreen" you could install 
wmctrl from your distribution repository and put this (originally from 
Offby1 on IRC many moons ago)

(when (executable-find "wmctrl")
  (global-set-key (kbd "<f11>") (lambda () (interactive) "Toggle
         fullscreen." (let ((dprobe  (assq 'display (frame-parameters
                                                     (selected-frame))))) 
(when dprobe (shell-command (format "DISPLAY=%s
         wmctrl -r :ACTIVE: -btoggle,fullscreen" (cdr dprobe))))))))

As you can see the keyboard shortcut is f11 but I'm sure you can change 
that easily enough.

Cheers
Shelagh




reply via email to

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