emacs-devel
[Top][All Lists]
Advanced

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

Re: Solution to a proposed FAQ, how to maximize emacs quickly (like `ema


From: David Hedlund
Subject: Re: Solution to a proposed FAQ, how to maximize emacs quickly (like `emacs --maximize`) for GNU/Linux
Date: Wed, 27 Sep 2023 17:18:38 +0200
User-agent: Mozilla Thunderbird


On 9/27/23 16:03, Emanuel Berg wrote:
David Hedlund wrote:

(defun switch-full-screen ()
  (interactive)
  (shell-command "wmctrl -r :ACTIVE: -b toggle,fullscreen"))
[...] let's focus why wmctrl cannot be executed from init in
Trisquel and Ubuntu MATE right now to avoid more confusion.
1. Make the terminal emulator window small so one can see that
   it isn't in fullscreen mode.

2. From the terminal, confirm that this works

   $ wmctrl -r :ACTIVE: -b toggle,fullscreen

3. If it does, in the Emacs window, do the same thing, first
   make it small so it is clear it isn't in fullscreen mode,
   then type and eval with C-x C-e or `eval-last-sexp'

     (shell-command "wmctrl -r :ACTIVE: -b toggle,fullscreen")

Thank you very much for helping out, Emanuel, and Björn.



reply via email to

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